Package com.deltaxml.core.exceptions
Class ConfigurationValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.deltaxml.core.exceptions.DeltaXMLException
com.deltaxml.core.exceptions.ConfigurationValidationException
- All Implemented Interfaces:
Serializable
An
Exception of this type is thrown when a configuration instance cannot be validated,
due to problems in the configuration data supplied by the user.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationValidationException(String message) Constructs a newConfigurationValidationExceptionwith the specified detail message.ConfigurationValidationException(String message, List<String> errors) Constructs a newConfigurationValidationExceptionwith the specified detail message and a list of validation errors. -
Method Summary
Methods inherited from class com.deltaxml.core.exceptions.DeltaXMLException
getCause, getThrowableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigurationValidationException
Constructs a newConfigurationValidationExceptionwith the specified detail message. The list of validation errors is not initialized.- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.
-
ConfigurationValidationException
Constructs a newConfigurationValidationExceptionwith the specified detail message and a list of validation errors.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method).errors- the list of validation errors (which is saved for later retrieval by thegetErrors()method)
-
-
Method Details
-
getErrors
Get the list of individual validation errors.- Returns:
- a list of errors found from validating the passed configuration.
-