public class FacesException
extends java.lang.RuntimeException
This class encapsulates general Jakarta Server Faces exceptions.
Constructor and Description |
---|
FacesException()
Construct a new exception with no detail message or root cause.
|
FacesException(java.lang.String message)
Construct a new exception with the specified detail message and no root cause.
|
FacesException(java.lang.String message,
java.lang.Throwable cause)
Construct a new exception with the specified detail message and root cause.
|
FacesException(java.lang.Throwable cause)
Construct a new exception with the specified root cause.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Return the cause of this exception, or
null if the cause is nonexistent or
unknown. |
public FacesException()
Construct a new exception with no detail message or root cause.
public FacesException(java.lang.String message)
Construct a new exception with the specified detail message and no root cause.
message
- The detail message for this exceptionpublic FacesException(java.lang.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 exceptionpublic FacesException(java.lang.String message, java.lang.Throwable cause)
Construct a new exception with the specified detail message and root cause.
message
- The detail message for this exceptioncause
- The root cause for this exception