java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.faces.FacesException
jakarta.faces.component.UpdateModelException
- All Implemented Interfaces:
Serializable
This exception indicates a failure to update the model and is created to wrap any exception that occurs during
UIInput.updateModel(jakarta.faces.context.FacesContext)
. The exception is then passed to
ExceptionHandler.processEvent(jakarta.faces.event.SystemEvent)
, where the ExceptionHandler
has an
opportunity to handle it.
- Since:
- 2.0
- See Also:
-
Constructor Summary
ConstructorDescriptionUpdateModelException
(FacesMessage facesMessage, Throwable cause) Store the argumentfacesMessage
so it may be returned fromgetFacesMessage()
and pass the argumentcause
to the super constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturn theFacesMessage
passed to the constructor.Methods inherited from class jakarta.faces.FacesException
getCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UpdateModelException
Store the argument
facesMessage
so it may be returned fromgetFacesMessage()
and pass the argumentcause
to the super constructor.- Parameters:
facesMessage
- the message for the exceptioncause
- the cause of this exception- Since:
- 2.0
-
-
Method Details
-
getFacesMessage
Return the
FacesMessage
passed to the constructor.- Returns:
- the message of this exception.
- Since:
- 2.0
-