org.modelmapper
Class MappingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.modelmapper.MappingException
All Implemented Interfaces:
Serializable

public class MappingException
extends RuntimeException

Indicates that an error has occurred during a mapping operation.

Author:
Jonathan Halterman
See Also:
Serialized Form

Constructor Summary
MappingException(List<ErrorMessage> messages)
           
 
Method Summary
 Collection<ErrorMessage> getErrorMessages()
          Returns messages for the errors that caused this exception.
 String getMessage()
          
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappingException

public MappingException(List<ErrorMessage> messages)
Method Detail

getMessage

public String getMessage()

Overrides:
getMessage in class Throwable

getErrorMessages

public Collection<ErrorMessage> getErrorMessages()
Returns messages for the errors that caused this exception.



Copyright © 2011. All Rights Reserved.