org.mobicents.protocols.smpp.event
Class ReceiverExceptionEvent

java.lang.Object
  extended by org.mobicents.protocols.smpp.event.SMPPEvent
      extended by org.mobicents.protocols.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 452 2009-01-15 16:56:36Z orank $

Field Summary
 
Fields inherited from class org.mobicents.protocols.smpp.event.SMPPEvent
RECEIVER_EXCEPTION, RECEIVER_EXIT, RECEIVER_START
 
Constructor Summary
ReceiverExceptionEvent(Session source, Throwable t)
          Create a new ReceiverExceptionEvent.
ReceiverExceptionEvent(Session source, Throwable t, SessionState state)
          Create a new ReceiverExceptionEvent.
 
Method Summary
 Throwable getException()
          Get the exception which was caught.
 SessionState getState()
          Get the state the connection was in when the exception was caught.
 
Methods inherited from class org.mobicents.protocols.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(Session source,
                              Throwable t)
Create a new ReceiverExceptionEvent.

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

ReceiverExceptionEvent

public ReceiverExceptionEvent(Session source,
                              Throwable t,
                              SessionState 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 SessionState 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:
SessionState


Copyright © 2011 Mobicents. All Rights Reserved.