Class FieldValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.communication.exception.FieldValidationException
- All Implemented Interfaces:
Serializable
Exception that is thrown when field(s) did not validate.
- Since:
- 9.0
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFieldValidationException
(List<ParseMessage> messages) Construct a FieldValidationException with a list of messages. -
Method Summary
Modifier and TypeMethodDescriptionString[]
getValidationMessages
(String languageCode) This method return an array of validation messages for the specified language.String[]
getValidationMessagesLegacy
(String languageCode) This method return an array of validation messages for the specified language.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FieldValidationException
Construct a FieldValidationException with a list of messages.- Parameters:
messages
- The list of ParseMessage messages, may not be null.
-
-
Method Details
-
getValidationMessages
This method return an array of validation messages for the specified language.- Parameters:
languageCode
- the language to return the messages in- Returns:
- array of validation messages, never null.
-
getValidationMessagesLegacy
This method return an array of validation messages for the specified language. The messages are constructed in the old way without the property name- Parameters:
languageCode
- the language to return the messages in- Returns:
- array of validation messages, never null.
-