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 IValidatorwhen 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 | 
 
 
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). This is used with custom
            validators that create renderers that produce rich markup (such as icons or links
            to help pages). Such renderes are expected to implement a toString()
            that returns a simple error message (without any markup).constraint - a validation constraint that has been compromised, or null if no constraint is
            applicable
 
getConstraint
public ValidationConstraint getConstraint()
 
getErrorRenderer
public IRender getErrorRenderer()
- Returns the error renderer for this exception, which may be null.
- Since:
 
  - 3.0 *
 
 
 
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.