Top Description Fields Constructors Methods
javax.faces.component

public Class UpdateModelException

extends FacesException
Class Inheritance
Imports
javax.faces.FacesException, javax.faces.application.FacesMessage

This exception indicates a failure to update the model and is created to wrap any exception that occurs during UIInput#updateModel. The exception is then passed to javax.faces.context.ExceptionHandler#processEvent, where the ExceptionHandler has an opportunity to handle it.

Since
2.0

Field Summary

Modifier and TypeField and Description
private FacesMessage
private static final long

Constructor Summary

AccessConstructor and Description
public
UpdateModelException(FacesMessage
the message for the exception
facesMessage
,
Throwable
the cause of this exception
cause
)

Store the argument facesMessage so it may be returned from getFacesMessage and pass the argument cause to the super constructor.

Method Summary

Modifier and TypeMethod and Description
public FacesMessage

Returns:

the message of this exception.
getFacesMessage
()

Return the FacesMessage passed to the constructor.

Inherited from javax.faces.FacesException:
getCause

Field Detail

facesMessageback to summary
private FacesMessage facesMessage
serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.faces.FacesException.serialVersionUID.

Constructor Detail

UpdateModelExceptionback to summary
public UpdateModelException(FacesMessage facesMessage, Throwable cause)

Store the argument facesMessage so it may be returned from getFacesMessage and pass the argument cause to the super constructor.

Parameters
facesMessage:FacesMessage

the message for the exception

cause:Throwable

the cause of this exception

Since
2.0

Method Detail

getFacesMessageback to summary
public FacesMessage getFacesMessage()

Return the FacesMessage passed to the constructor.

Returns:FacesMessage

the message of this exception.

Since
2.0