Class SmppErrorEvent

    • Field Detail

      • SMPP_ERROR_INVALID_RESPONSE

        public static final int SMPP_ERROR_INVALID_RESPONSE
        The stack received an invalid response from the other node. The offending response PDU can be obtained using getMessage().
        See Also:
        Constant Field Values
      • SMPP_ERROR_NETWORK

        public static final int SMPP_ERROR_NETWORK
        An error occurred with the network connection, probably when asynchronously sending a request that was started earlier.
        See Also:
        Constant Field Values
      • SMPP_TIMEOUT_SESSION_INIT

        public static final int SMPP_TIMEOUT_SESSION_INIT
        This session's Session Init timer has fired, meaning that the session has been too long in the `OPEN` or `OUTBOUND` states before a successful bind. The service should close the session.
        See Also:
        Constant Field Values
      • SMPP_TIMEOUT_ENQUIRE_LINK

        public static final int SMPP_TIMEOUT_ENQUIRE_LINK
        This session's Enquire Link timer has fired. The service should send an `ENQUIRE_LINK` request to the peer to confirm that the session is still alive.
        See Also:
        Constant Field Values
      • SMPP_TIMEOUT_INACTIVITY

        public static final int SMPP_TIMEOUT_INACTIVITY
        This session's Inactivity timer has fired. It has been too long since the last transaction, the service should consider the session to have died and close it.
        See Also:
        Constant Field Values
      • SMPP_TIMEOUT_RESPONSE_RECEIVED

        public static final int SMPP_TIMEOUT_RESPONSE_RECEIVED
        The stack has timed out waiting for a response to be received from the other node in the session. The getMessage() method returns the original request. The service should consider the request to have failed, and may re-send or reconnect as appropriate.
        See Also:
        Constant Field Values
      • SMPP_TIMEOUT_RESPONSE_SENT

        public static final int SMPP_TIMEOUT_RESPONSE_SENT
        The stack has timed out waiting for a response to be sent to the other node in the session (that is, the service failed to do so). The getMessage() method returns the original request. This error is never fired as an event because the service failed to process the request event. The resource adaptor will send a generic_nack to the other node.
        See Also:
        Constant Field Values
    • Method Detail

      • getSession

        public SmppSession getSession()
        Get the session that the error occurred on
      • getMessage

        public PDU getMessage()
        Get the offending PDU, if any. Will return `null` if there is no PDU associated with this error (eg. Inactivity timeout).
      • getErrorCode

        @Deprecated
        public int getErrorCode()
        Deprecated.
        Use getErrorType() instead.
        Get the error code. See constants for possible values and their meanings