com.townleyenterprises.validator
Class FieldValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.townleyenterprises.validator.FieldValidationException
- All Implemented Interfaces:
- java.io.Serializable
- public class FieldValidationException
- extends java.lang.Exception
This exception is thrown when a field validator fails.
- Since:
- 3.0
- Version:
- $Id: FieldValidationException.java,v 1.2 2004/07/29 18:36:38 atownley Exp $
- Author:
- Andrew S. Townley
- See Also:
- Serialized Form
Constructor Summary |
FieldValidationException(java.lang.String field,
java.lang.Object value)
|
FieldValidationException(java.lang.String field,
java.lang.Object value,
java.lang.String msg)
|
FieldValidationException(java.lang.String field,
java.lang.Object value,
java.lang.String msg,
java.lang.Throwable throwable)
The constructor initializes the instance with all the
relevant failure information. |
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 |
FieldValidationException
public FieldValidationException(java.lang.String field,
java.lang.Object value,
java.lang.String msg,
java.lang.Throwable throwable)
- The constructor initializes the instance with all the
relevant failure information.
- Parameters:
field
- the name of the fieldvalue
- the value which failed validationmsg
- the custom messagethrowable
- the cause of the failure
FieldValidationException
public FieldValidationException(java.lang.String field,
java.lang.Object value,
java.lang.String msg)
FieldValidationException
public FieldValidationException(java.lang.String field,
java.lang.Object value)
getField
public java.lang.String getField()
getValue
public java.lang.Object getValue()
Copyright © 2002-2004, Andrew S. Townley and Townley Enterprises. All Rights Reserved.
This project is hosted on http://te-code.sourceforge.net.