javax.faces.event
Class ExceptionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.faces.event.SystemEvent
          extended by javax.faces.event.ExceptionEvent
All Implemented Interfaces:
Serializable

public class ExceptionEvent
extends SystemEvent

The system event facility will create an instance of this class whenever Application.publishEvent(java.lang.Class, java.lang.Object) is called with ExceptionEvent.class as systemEventClass argument. In this case, an instance of ExceptionEventContext is be passed as the source argument. The specification for publishEvent(), requires the instantiation of the systemEventClass argument, passing the source argument to the constructor.

Since:
2.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ExceptionEvent(ExceptionEventContext eventContext)
          

Instantiate a new ExceptionEvent that indicates the argument ExceptionEventContext occurred.

 
Method Summary
 ExceptionEventContext getContext()
          

Return the ExceptionEventContext for this event instance.

 
Methods inherited from class javax.faces.event.SystemEvent
isAppropriateListener, processListener
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionEvent

public ExceptionEvent(ExceptionEventContext eventContext)

Instantiate a new ExceptionEvent that indicates the argument ExceptionEventContext occurred.

Parameters:
eventContext - the ExceptionEventContext that contextualizes this ExceptionEvent.
Since:
2.0
Method Detail

getContext

public ExceptionEventContext getContext()

Return the ExceptionEventContext for this event instance.

Since:
2.0


Copyright © 2002-2008 Sun Microsystems, Inc. All Rights Reserved.