org.apache.tapestry.valid
Class ValidatorException
java.lang.Object
   java.lang.Throwable
java.lang.Throwable
       java.lang.Exception
java.lang.Exception
           org.apache.tapestry.valid.ValidatorException
org.apache.tapestry.valid.ValidatorException
- All Implemented Interfaces: 
- Serializable
- public class ValidatorException 
- extends Exception
Thrown by a IValidator when submitted input is not valid.
- Since:
- 1.0.8
- Version:
- $Id: ValidatorException.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- Howard Lewis Ship
- See Also:
- Serialized Form
 
 
| Methods inherited from class java.lang.Throwable | 
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
 
 
ValidatorException
public ValidatorException(String errorMessage)
ValidatorException
public ValidatorException(String errorMessage,
                          ValidationConstraint constraint)
ValidatorException
public ValidatorException(String errorMessage,
                          IRender errorRenderer,
                          ValidationConstraint constraint)
- Creates a new instance.
 
- Parameters:
- errorMessage- the default error message to be used (this may be
  overriden by the- IValidationDelegate)
- errorRenderer- to use to render the error message (may be null)
- constraint- a validation constraint that has been compromised, or
  null if no constraint is applicable
 
getConstraint
public ValidationConstraint getConstraint()
- 
 
getErrorRenderer
public IRender getErrorRenderer()
- 
- Since:
- 3.0