be.objectify.led.validation
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
be.objectify.led.validation.ValidationException
- All Implemented Interfaces:
- Serializable
public class ValidationException
- extends RuntimeException
Indicates validation has failed.
- Author:
- Steve Chaloner
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ValidationException
public ValidationException(String fieldName,
String reason)
- Initialises a new instance with the target field name and reason for the validation failure.
- Parameters:
fieldName - the field namereason - the reason
ValidationException
public ValidationException(String fieldName,
String reason,
Throwable cause)
- Initialises a new instance with the target field name, reason for the validation failure and
a root cause.
- Parameters:
fieldName - the field namereason - the reasoncause - an associated exception
getFieldName
public String getFieldName()
getReason
public String getReason()
Copyright © 2010 Objectify. All Rights Reserved.