org.apache.tapestry.valid
Class ValidatorException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.apache.tapestry.valid.ValidatorException
- All Implemented Interfaces:
- java.io.Serializable
- public class ValidatorException
- extends java.lang.Exception
Thrown by a IValidator
when submitted input is not valid.
- Since:
- 1.0.8
- 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ValidatorException
public ValidatorException(java.lang.String errorMessage)
ValidatorException
public ValidatorException(java.lang.String errorMessage,
ValidationConstraint constraint)
ValidatorException
public ValidatorException(java.lang.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