Class XmlValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.SysException
com.aquima.interactions.foundation.xml.exception.XmlException
com.aquima.interactions.foundation.xml.exception.XmlValidationException
- All Implemented Interfaces:
Serializable
Exception that is thrown when an XML is not valid. It provides a getValidationMessages method to retrieve all
validation errors.
- Since:
- 6.4
- Author:
- Jon van Leuven
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXmlValidationException
(String message, List<String> errors) Construct a validation exception with validation errors and an message. -
Method Summary
Methods inherited from class com.aquima.interactions.foundation.exception.SysException
raise, raise
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
XmlValidationException
Construct a validation exception with validation errors and an message.- Parameters:
message
- The Overall messageerrors
- A list of string messages, containing the validation errors (not null)
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getValidationMessages
This method returns all the validation messages.- Returns:
- An array of validation messages (never null)
-