gov.aps.epics.jca
Class ContextExceptionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--gov.aps.epics.jca.CaEvent
              |
              +--gov.aps.epics.jca.ContextExceptionEvent
All Implemented Interfaces:
CaConstants, 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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Fields inherited from interface gov.aps.epics.jca.CaConstants
CA_K_ERROR, CA_K_FATAL, CA_K_INFO, CA_K_SEVERE, CA_K_SUCCESS, CA_K_WARNING, CA_M_ERROR, CA_M_LEVEL, CA_M_MSG_NO, CA_M_SEVERE, CA_M_SEVERITY, CA_M_SUCCESS, CA_OP_ADD_MONITOR, CA_OP_CLEAR_MONITOR, CA_OP_CONN_DOWN, CA_OP_CONN_UP, CA_OP_FIRST, CA_OP_GET, CA_OP_LAST, CA_OP_OTHER, CA_OP_PUT, CA_OP_SEARCH, CA_OP_STRING, CA_V_MSG_NO, CA_V_SEVERITY, CA_V_SUCCESS, CALLBACK_MODE_FIRST, CALLBACK_MODE_LAST, CALLBACK_MODE_STRING, CS_CLOSED, CS_CONN, CS_FIRST, CS_LAST, CS_NEVER_CONN, CS_PREV_CONN, CS_STRING, DBE_ALARM, DBE_LOG, DBE_VALUE, DBR_BYTE, DBR_CTRL_BYTE, DBR_CTRL_DOUBLE, DBR_CTRL_ENUM, DBR_CTRL_FLOAT, DBR_CTRL_INT, DBR_CTRL_SHORT, DBR_CTRL_STRING, DBR_DOUBLE, DBR_ENUM, DBR_FIRST, DBR_FLOAT, DBR_GR_BYTE, DBR_GR_DOUBLE, DBR_GR_FLOAT, DBR_GR_INT, DBR_GR_SHORT, DBR_GR_STRING, DBR_INT, DBR_LABELS_ENUM, DBR_LAST, DBR_PUT_ACKS, DBR_PUT_ACKT, DBR_SHORT, DBR_STRING, DBR_STS_BYTE, DBR_STS_DOUBLE, DBR_STS_ENUM, DBR_STS_FLOAT, DBR_STS_INT, DBR_STS_SHORT, DBR_STS_STRING, DBR_STSACK_STRING, DBR_TIME_BYTE, DBR_TIME_DOUBLE, DBR_TIME_ENUM, DBR_TIME_FLOAT, DBR_TIME_INT, DBR_TIME_SHORT, DBR_TIME_STRING, DBR_TYPE_STRING, DISABLE_PREEMPTIVE_CALLBACK, ECA_ADDFAIL, ECA_ALLOCMEM, ECA_ANACHRONISM, ECA_BADCHID, ECA_BADCOUNT, ECA_BADFUNCPTR, ECA_BADMASK, ECA_BADMONID, ECA_BADPRIORITY, ECA_BADSTR, ECA_BADSYNCGRP, ECA_BADTYPE, ECA_BUILDGET, ECA_CHANDESTROY, ECA_CHIDNOTFND, ECA_CHIDRETRY, ECA_CONN, ECA_DBLCHNL, ECA_DBLCLFAIL, ECA_DEFUNCT, ECA_DISCONN, ECA_DISCONNCHID, ECA_DLCKREST, ECA_EMPTYSTR, ECA_EVDISALLOW, ECA_FIRST, ECA_GETFAIL, ECA_INTERNAL, ECA_IODONE, ECA_IOINPROGRESS, ECA_ISATTACHED, ECA_LAST, ECA_MAXIOC, ECA_MESSAGE_STRING, ECA_NEEDSFP, ECA_NEWADDR, ECA_NEWCONN, ECA_NOCACTX, ECA_NOCAST, ECA_NOCHANMSG, ECA_NOCONVERT, ECA_NORDACCESS, ECA_NOREPEATER, ECA_NORMAL, ECA_NOSEARCHADDR, ECA_NOSUPPORT, ECA_NOTINSERVICE, ECA_NOTTHREADED, ECA_NOWTACCESS, ECA_OVEVFAIL, ECA_PUTCBINPROG, ECA_PUTFAIL, ECA_SERVBEHIND, ECA_SOCK, ECA_STRTOBIG, ECA_TIMEOUT, ECA_TOLARGE, ECA_UKNCHAN, ECA_UKNFIELD, ECA_UKNHOST, ECA_UKNSERV, ENABLE_PREEMPTIVE_CALLBACK, THREAD_CTRL_EXTERNAL, THREAD_CTRL_FIRST, THREAD_CTRL_INTERNAL, THREAD_CTRL_LAST, THREAD_CTRL_STRING
 
Constructor Summary
ContextExceptionEvent(gov.aps.epics.jca.Context ctxt, gov.aps.epics.jca.Channel ch, int type, int count, gov.aps.epics.jca.dbr.DBR dbr, int status, int op, java.lang.String ctxtInfo, java.lang.String file, int line)
           
 
Method Summary
 gov.aps.epics.jca.Channel getChannel()
          The Channel associated with the exception if any.
 java.lang.String getContextInfo()
          Returns a String representing some information about the Context when the failure occured.
 int getCount()
          Returns the element count of the request when the failure occured.
 gov.aps.epics.jca.dbr.DBR getDBR()
          Returns the DBR object of the request when the failure occured.
 java.lang.String getFile()
          Returns the name of the file in which the failure occured if available.
 int getLine()
          Returns the line number in the file where the failure occured if available.
 int getOP()
          Returns the OP code of the operation when the failure occured.
 int getStatus()
          Returns the status of the operation when the failure occured.
 int getType()
          Returns the type of the request when the failure occured.
 
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

ContextExceptionEvent

public ContextExceptionEvent(gov.aps.epics.jca.Context ctxt,
                             gov.aps.epics.jca.Channel ch,
                             int type,
                             int count,
                             gov.aps.epics.jca.dbr.DBR dbr,
                             int status,
                             int op,
                             java.lang.String ctxtInfo,
                             java.lang.String file,
                             int line)
Method Detail

getChannel

public gov.aps.epics.jca.Channel getChannel()
The Channel associated with the exception if any.

Returns:
the Channel or null if none.

getType

public int getType()
Returns the type of the request when the failure occured.

See Also:
CaConstants

getCount

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


getDBR

public gov.aps.epics.jca.dbr.DBR getDBR()
Returns the DBR object of the request when the failure occured. Only valid for CA_OP_GET operation.

Returns:
the DBR object or null if none.

getStatus

public int getStatus()
Returns the status of the operation when the failure occured.


getOP

public int getOP()
Returns the OP code of the operation when the failure occured.

See Also:
CaConstants

getContextInfo

public java.lang.String getContextInfo()
Returns a String representing some information about the Context when the failure occured.


getFile

public java.lang.String getFile()
Returns the name of the file in which the failure occured if available.


getLine

public int getLine()
Returns the line number in the file where the failure occured if available.