org.apache.tapestry.valid
Class ValidatorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
ValidatorException(String errorMessage)
           
ValidatorException(String errorMessage, IRender errorRenderer, ValidationConstraint constraint)
          Creates a new instance.
ValidatorException(String errorMessage, ValidationConstraint constraint)
           
 
Method Summary
 ValidationConstraint getConstraint()
           
 IRender getErrorRenderer()
           
 
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

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
Method Detail

getConstraint

public ValidationConstraint getConstraint()

getErrorRenderer

public IRender getErrorRenderer()
Since:
3.0