be.objectify.led.validation
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
ValidationException(String fieldName, String reason)
          Initialises a new instance with the target field name and reason for the validation failure.
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.
 
Method Summary
 String getFieldName()
           
 String getReason()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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(String fieldName,
                           String reason)
Initialises a new instance with the target field name and reason for the validation failure.

Parameters:
fieldName - the field name
reason - 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 name
reason - the reason
cause - an associated exception
Method Detail

getFieldName

public String getFieldName()

getReason

public String getReason()


Copyright © 2010 Objectify. All Rights Reserved.