com.objectxp.msg
Class SmppException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.objectxp.msg.MessageException
              extended by com.objectxp.msg.SmppException
All Implemented Interfaces:
java.io.Serializable

public class SmppException
extends MessageException

This exception will be thrown by the SmppSmsService for SMPP specific exceptions.

See Also:
SmppSmsService, Serialized Form

Field Summary
static int ERROR_TYPE_INTEGRITY
          Response integrity failure
static int ERROR_TYPE_NACK
          SMPP GENERIC NACK response
static int ERROR_TYPE_UNKNOWN
          Unknown response
static int STATUS_CODE_UNKNOWN
          Unknown command status
 
Method Summary
 int getCommandStatus()
          Returns the command status.
 java.lang.String getErrorText()
          Returns the error text.
 int getErrorType()
          Returns the type of error.
 java.lang.String getMessage()
          Get the message for this Exception
 boolean isOffsetMismatch()
          Returns true if a offset mismatch occured.
 boolean isSequenceMismatch()
          Returns true if a sequence mismatch occured.
 
Methods inherited from class com.objectxp.msg.MessageException
getException, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_TYPE_INTEGRITY

public static final int ERROR_TYPE_INTEGRITY
Response integrity failure

See Also:
Constant Field Values

ERROR_TYPE_NACK

public static final int ERROR_TYPE_NACK
SMPP GENERIC NACK response

See Also:
Constant Field Values

ERROR_TYPE_UNKNOWN

public static final int ERROR_TYPE_UNKNOWN
Unknown response

See Also:
Constant Field Values

STATUS_CODE_UNKNOWN

public static final int STATUS_CODE_UNKNOWN
Unknown command status

See Also:
Constant Field Values
Method Detail

getCommandStatus

public int getCommandStatus()
Returns the command status. See the SMPP specifications for more information about the possible command status codes.

Returns:
the command status

getErrorType

public int getErrorType()
Returns the type of error.

Returns:
the type of error.

getErrorText

public java.lang.String getErrorText()
Returns the error text. This is just a human readable representation of the command status code.


isSequenceMismatch

public boolean isSequenceMismatch()
Returns true if a sequence mismatch occured. A sequence error is caused by a SMPP response that contains the wrong sequence number.


isOffsetMismatch

public boolean isOffsetMismatch()
Returns true if a offset mismatch occured. A offset mismatch is present if the command_id of a response to an outgoing SMPP operation doesn't match the outgoing command_id.


getMessage

public java.lang.String getMessage()
Description copied from class: MessageException
Get the message for this Exception

Overrides:
getMessage in class MessageException


object XP, Inc. © 2000-2008. All rights reserved object XP