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 theExceptionHandler
has an opportunity to handle it.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UpdateModelException(FacesMessage facesMessage, Throwable cause)
Store the argumentfacesMessage
so it may be returned fromgetFacesMessage()
and pass the argumentcause
to the super constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacesMessage
getFacesMessage()
Return 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 Detail
-
UpdateModelException
public UpdateModelException(FacesMessage facesMessage, Throwable cause)
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 Detail
-
getFacesMessage
public FacesMessage getFacesMessage()
Return the
FacesMessage
passed to the constructor.- Returns:
- the message of this exception.
- Since:
- 2.0
-
-