Top Description Fields Constructors Methods
javax.faces

public Class FacesException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
javax.faces.application.ViewExpiredException, javax.faces.application.ProtectedViewException, javax.faces.component.UpdateModelException, javax.faces.component.search.ComponentNotFoundException, javax.faces.convert.ConverterException, javax.faces.el.EvaluationException, javax.faces.event.AbortProcessingException, javax.faces.validator.ValidatorException, javax.faces.view.facelets.FaceletException

This class encapsulates general JavaServer Faces exceptions.

Field Summary

Modifier and TypeField and Description
private Throwable
cause

Hides java.lang.Throwable.cause.

The underlying exception that caused this exception.

private static final long

Constructor Summary

AccessConstructor and Description
public
FacesException()

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

public
FacesException(String
The detail message for this exception
message
)

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

public
FacesException(Throwable
The root cause for this exception
cause
)

Construct a new exception with the specified root cause.

public
FacesException(String
The detail message for this exception
message
,
Throwable
The root cause for this exception
cause
)

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

Method Summary

Modifier and TypeMethod and Description
public Throwable
getCause()

Overrides java.lang.Throwable.getCause.

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

Field Detail

causeback to summary
private Throwable cause

Hides java.lang.Throwable.cause.

The underlying exception that caused this exception.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

FacesExceptionback to summary
public FacesException()

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

FacesExceptionback to summary
public FacesException(String message)

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

Parameters
message:String

The detail message for this exception

FacesExceptionback to summary
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()

Parameters
cause:Throwable

The root cause for this exception

FacesExceptionback to summary
public FacesException(String message, Throwable cause)

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

Parameters
message:String

The detail message for this exception

cause:Throwable

The root cause for this exception

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

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

Returns:Throwable

Doc from java.lang.Throwable.getCause.

the cause of this throwable or null if the cause is nonexistent or unknown.

Annotations
@Override