FacesException (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.faces Class FacesException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.faces.FacesException
所有已实现的接口:
Serializable
直接已知子类:
AbortProcessingException, ConverterException, EvaluationException, ValidatorException, ViewExpiredException

public class FacesException
extends RuntimeException

This class encapsulates general JavaServer Faces exceptions.

另请参见:
Serialized Form

构造器摘要
FacesException()
          Construct a new exception with no detail message or root cause.
FacesException(String message)
          Construct a new exception with the specified detail message and no root cause.
FacesException(String message, Throwable cause)
          Construct a new exception with the specified detail message and root cause.
FacesException(Throwable cause)
          Construct a new exception with the specified root cause.
 
方法摘要
 Throwable getCause()
          Return the cause of this exception, or null if the cause is nonexistent or unknown.
 
类方法继承 java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造器详细信息

FacesException

public FacesException()

Construct a new exception with no detail message or root cause.


FacesException

public FacesException(String message)

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

参数:
message - The detail message for this exception


FacesException

public FacesException(Throwable cause)

Construct a new exception with the specified root cause. The detail message will be set to (cause == null ? null : cause.toString()

参数:
cause - The root cause for this exception


FacesException

public FacesException(String message,
                      Throwable cause)

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

参数:
message - The detail message for this exception
cause - The root cause for this exception

方法详细信息

getCause

public Throwable getCause()

Return the cause of this exception, or null if the cause is nonexistent or unknown.

重写:
getCause in class Throwable

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.