gov.aps.jca.event
Class ContextExceptionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--gov.aps.jca.event.CAEvent
              |
              +--gov.aps.jca.event.ContextExceptionEvent
All Implemented Interfaces:
java.io.Serializable

public class ContextExceptionEvent
extends CAEvent

An event which indicates an asynchronous exception in a Context. Asynchronous context exceptions occur when a server notify the Context of a remote problem.

See Also:
Context, Serialized Form

Constructor Summary
ContextExceptionEvent(Context ctxt, Channel ch, DBRType dbrType, int count, DBR dbr, java.lang.String msg)
           
 
Method Summary
 Channel getChannel()
          The Channel associated with the exception if any.
 int getCount()
          Returns the element count of the request when the failure occured.
 DBR getDBR()
          Returns the DBR object of the request when the failure occured.
 DBRType getDBRType()
          Returns the type of the request when the failure occured.
 java.lang.String getMessage()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextExceptionEvent

public ContextExceptionEvent(Context ctxt,
                             Channel ch,
                             DBRType dbrType,
                             int count,
                             DBR dbr,
                             java.lang.String msg)
Method Detail

getChannel

public Channel getChannel()
The Channel associated with the exception if any.

Returns:
the Channel or null if none.

getDBRType

public DBRType getDBRType()
Returns the type of the request when the failure occured.


getCount

public int getCount()
Returns the element count of the request when the failure occured.


getDBR

public DBR getDBR()
Returns the DBR object of the request when the failure occured. Only valid for GET operations.

Returns:
the DBR object or null if none.

getMessage

public java.lang.String getMessage()