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
public class XmlValidationException extends XmlException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XmlValidationException(String message, List<String> errors)
Construct a validation exception with validation errors and an message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
String[]
getValidationMessages()
This method returns all the validation messages.-
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
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getValidationMessages
public String[] getValidationMessages()
This method returns all the validation messages.- Returns:
- An array of validation messages (never null)
-
-