org.javalite.activejdbc.validation
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.javalite.activejdbc.DBException
org.javalite.activejdbc.validation.ValidationException
- All Implemented Interfaces:
- Serializable
public class ValidationException
- extends DBException
- Author:
- Igor Polevoy
- See Also:
- Serialized Form
|
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()
|
ValidationException
public ValidationException(Model m)
ValidationException
public ValidationException(String message)
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.