Package org.modelmapper
Class MappingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.modelmapper.MappingException
-
- All Implemented Interfaces:
Serializable
public class MappingException extends RuntimeException
Indicates that an error has occurred during a mapping operation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MappingException(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
-
MappingException
public MappingException(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.
-
-