ie.omk.smpp.event
Class ReceiverExceptionEvent

java.lang.Object
  extended by ie.omk.smpp.event.SMPPEvent
      extended by ie.omk.smpp.event.ReceiverExceptionEvent

public class ReceiverExceptionEvent
extends SMPPEvent

Event generated by the receiver thread when a non-fatal exception is caught. An application will receive this event type if the receiver thread catches an exception which does not cause it to terminate. The exception which was caught and the state the connection was in when it was caught are saved in this event.

Version:
$Id: ReceiverExceptionEvent.java 264 2006-03-09 14:00:40Z orank $
Author:
Oran Kelly

Field Summary
 
Fields inherited from class ie.omk.smpp.event.SMPPEvent
RECEIVER_EXCEPTION, RECEIVER_EXIT, RECEIVER_START
 
Constructor Summary
ReceiverExceptionEvent(Connection source, Throwable t)
          Create a new ReceiverExceptionEvent.
ReceiverExceptionEvent(Connection source, Throwable t, int state)
          Create a new ReceiverExceptionEvent.
 
Method Summary
 Throwable getException()
          Get the exception which was caught.
 int getState()
          Get the state the connection was in when the exception was caught.
 
Methods inherited from class ie.omk.smpp.event.SMPPEvent
getSource, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceiverExceptionEvent

public ReceiverExceptionEvent(Connection source,
                              Throwable t)
Create a new ReceiverExceptionEvent.

Parameters:
source - the source Connection of this event.
t - the exception being reported.

ReceiverExceptionEvent

public ReceiverExceptionEvent(Connection source,
                              Throwable t,
                              int state)
Create a new ReceiverExceptionEvent.

Parameters:
source - the source Connection of this event.
t - the exception being reported.
state - the state the connection was in when the exception was caught.
Method Detail

getException

public Throwable getException()
Get the exception which was caught.


getState

public int getState()
Get the state the connection was in when the exception was caught.

Returns:
the integer value representing the state of the connection.
See Also:
Connection.BOUND, Connection.UNBOUND, Connection.BINDING, Connection.UNBINDING


Copyright © 2011 smppapi at Sourceforge. All Rights Reserved.