org.javalite.activejdbc.validation
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.javalite.activejdbc.DBException
                  extended by org.javalite.activejdbc.validation.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException
extends DBException

Author:
Igor Polevoy
See Also:
Serialized Form

Constructor Summary
ValidationException(Model m)
           
ValidationException(String message)
           
 
Method Summary
 Errors errors()
          Convenience method, returns the same object with errors that is attached to a model generated this exception.
 Errors errors(Locale locale)
          Convenience method, returns the same object with errors that is attached to a model generated 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(Model m)

ValidationException

public ValidationException(String message)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class DBException

errors

public Errors errors()
Convenience method, returns the same object with errors that is attached to a model generated this exception.

Returns:
the same object wit errors that is attached to a model generated this exception

errors

public Errors errors(Locale locale)
Convenience method, returns the same object with errors that is attached to a model generated this exception.

Parameters:
locale - locale in case messages are localized.
Returns:
the same object wit errors that is attached to a model generated this exception


Copyright © 2015 JavaLite. All rights reserved.