org.mobicents.protocols.smpp.event
Class ReceiverExceptionEvent
java.lang.Object
org.mobicents.protocols.smpp.event.SMPPEvent
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 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.