Package jakarta.faces.component
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
public class UpdateModelException extends FacesException
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 toExceptionHandler.processEvent(jakarta.faces.event.SystemEvent), where theExceptionHandlerhas an opportunity to handle it.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpdateModelException(FacesMessage facesMessage, Throwable cause)Store the argumentfacesMessageso it may be returned fromgetFacesMessage()and pass the argumentcauseto the super constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacesMessagegetFacesMessage()Return theFacesMessagepassed 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 Detail
-
UpdateModelException
public UpdateModelException(FacesMessage facesMessage, Throwable cause)
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 Detail
-
getFacesMessage
public FacesMessage getFacesMessage()
Return the
FacesMessagepassed to the constructor.- Returns:
- the message of this exception.
- Since:
- 2.0
-
-