Package org.modelmapper
Class ValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.modelmapper.ValidationException
-
- All Implemented Interfaces:
Serializable
public class ValidationException extends RuntimeException
Indicates that an error has occurred during a validate operation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationException(List<ErrorMessage> messages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ErrorMessage>
getErrorMessages()
Returns messages for the errors that caused this exception.String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ValidationException
public ValidationException(List<ErrorMessage> messages)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getErrorMessages
public Collection<ErrorMessage> getErrorMessages()
Returns messages for the errors that caused this exception.
-
-