Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
com.logicaldoc.core.PersistenceException
com.logicaldoc.core.metadata.validation.ValidationException
- All Implemented Interfaces:
Serializable
,Iterable<Throwable>
Raised when the content being stored are not logically valid.
- Since:
- 8.8.1
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Constructor Summary
ConstructorDescriptionValidationException
(String message) ValidationException
(String message, Throwable cause) ValidationException
(Collection<ValidationError> errors) Creates a new session with the map of errorsValidationException
(Collection<ValidationError> errors, Throwable cause) Creates a new session with the map of errors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addError
(ValidationError error) Retrieves the map with the errors descriptionsMethods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ValidationException
Creates a new session with the map of errors- Parameters:
errors
- map of error descriptions
-
ValidationException
Creates a new session with the map of errors- Parameters:
errors
- collection of error descriptionscause
- origin of the error
-
ValidationException
-
ValidationException
-
-
Method Details
-
getErrors
Retrieves the map with the errors descriptions- Returns:
- the map attribute_name - error_description
-
addError
-
getMessage
- Overrides:
getMessage
in classThrowable
-