com.townleyenterprises.validator
Class FieldValidationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.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.
 
Method Summary
 java.lang.String getField()
           
 java.lang.Object getValue()
           
 
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

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 field
value - the value which failed validation
msg - the custom message
throwable - 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)
Method Detail

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.