Class UpdateModelException
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(FacesContext). The exception is then passed to
ExceptionHandler.processEvent(SystemEvent), where the ExceptionHandler has an
opportunity to handle it.
- Since:
- 2.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateModelException(FacesMessage facesMessage, Throwable cause) Store the argumentfacesMessageso it may be returned fromgetFacesMessage()and pass the argumentcauseto the super constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturn theFacesMessagepassed to the constructor.Methods inherited from class FacesException
getCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UpdateModelException
Store the argument
facesMessageso it may be returned fromgetFacesMessage()and pass the argumentcauseto the super constructor.- Parameters:
facesMessage- the message for the exceptioncause- the cause of this exception- Since:
- 2.0
-
-
Method Details
-
getFacesMessage
Return the
FacesMessagepassed to the constructor.- Returns:
- the message of this exception.
- Since:
- 2.0
-