Class 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 to ExceptionHandler.processEvent(jakarta.faces.event.SystemEvent), where the ExceptionHandler has an opportunity to handle it.

Since:
2.0
See Also:
  • Constructor Details

    • UpdateModelException

      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 - the message for the exception
      cause - the cause of this exception
      Since:
      2.0
  • Method Details

    • getFacesMessage

      public FacesMessage getFacesMessage()

      Return the FacesMessage passed to the constructor.

      Returns:
      the message of this exception.
      Since:
      2.0