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 SummaryConstructorsConstructorDescriptionValidationException(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 SummaryModifier and TypeMethodDescriptionvoidaddError(ValidationError error) Retrieves the map with the errors descriptionsMethods inherited from class java.sql.SQLExceptiongetErrorCode, getNextException, getSQLState, iterator, setNextExceptionMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
ValidationExceptionCreates a new session with the map of errors- Parameters:
- errors- map of error descriptions
 
- 
ValidationExceptionCreates a new session with the map of errors- Parameters:
- errors- collection of error descriptions
- cause- origin of the error
 
- 
ValidationException
- 
ValidationException
 
- 
- 
Method Details- 
getErrorsRetrieves the map with the errors descriptions- Returns:
- the map attribute_name - error_description
 
- 
addError
- 
getMessage- Overrides:
- getMessagein class- Throwable
 
 
-