javax.faces.component
Class UpdateModelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.faces.FacesException
                  extended by javax.faces.component.UpdateModelException
All Implemented Interfaces:
java.io.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. The exception is then passed to ExceptionHandler.processEvent(javax.faces.event.SystemEvent), where the ExceptionHandler has an opportunity to handle it.

Since:
2.0
See Also:
Serialized Form

Constructor Summary
UpdateModelException(FacesMessage facesMessage, java.lang.Throwable cause)
          

Store the argument facesMessage so it may be returned from getFacesMessage() and pass the argument cause to the super constructor.

 
Method Summary
 FacesMessage getFacesMessage()
          

Return the FacesMessage passed to the constructor.

 
Methods inherited from class javax.faces.FacesException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateModelException

public UpdateModelException(FacesMessage facesMessage,
                            java.lang.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 Detail

getFacesMessage

public FacesMessage getFacesMessage()

Return the FacesMessage passed to the constructor.

Since:
2.0


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41