ValidatorException (Java EE 5)

Java EE API


javax.faces.validator Class ValidatorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.faces.FacesException
                  extended by javax.faces.validator.ValidatorException
All Implemented Interfaces:
Serializable

public class ValidatorException
extends FacesException

Extends: Throwable > Exception > RuntimeException > FacesException

ValidatorExceptionValidatorvalidate() 方法抛出的异常,用于指示验证失败。

英文文档:

A ValidatorException is an exception thrown by the validate() method of a Validator to indicate that validation failed.

See Also:
Serialized Form

Constructor Summary
 
Method Summary
 FacesMessage
 
Methods inherited from class javax.faces.FacesException
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public ValidatorException(FacesMessage message)

构造带指定消息但不带根本原因的新异常。

message 此异常的消息
英文文档:

ValidatorException

public ValidatorException(FacesMessage message)

Construct a new exception with the specified message and no root cause.

Parameters:
message - The message for this exception


public ValidatorException(FacesMessage message, Throwable cause)

构造带指定详细消息和根本原因的新异常。

message 此异常的详细消息
cause 此异常的根本原因
英文文档:

ValidatorException

public ValidatorException(FacesMessage message,
                          Throwable cause)

Construct a new exception with the specified detail message and root cause.

Parameters:
message - The detail message for this exception
cause - The root cause for this exception

Method Detail

public FacesMessage getFacesMessage()
返回与此异常关联的 FacesMessage。
英文文档:

getFacesMessage

public FacesMessage getFacesMessage()
Returns the FacesMessage associated with the exception.



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!