org.modelmapper
Class ValidationException

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

public class ValidationException
extends RuntimeException

Indicates that an error has occurred during a validate operation.

Author:
Jonathan Halterman
See Also:
Serialized Form

Constructor Summary
ValidationException(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

ValidationException

public ValidationException(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.