org.apache.tapestry.valid
Class ValidatorException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--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,v 1.2 2003/04/17 21:33:58 hlship Exp $
- Author:
- Howard Lewis Ship
- See Also:
- Serialized Form
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
)renderer
- 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