public class Cimd2Exception extends MessageException
Cimd2SmsService
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
ERROR_CODE_UNKNOWN
Unknown error code
|
static int |
ERROR_TYPE_GENERAL
Type of CIMD2 error: General
|
static int |
ERROR_TYPE_GENERIC
Generic error response
|
static int |
ERROR_TYPE_INTEGRITY
Response integrity failure
|
static int |
ERROR_TYPE_NACK
Type of CIMD2 error: NACK
|
static int |
ERROR_TYPE_UNKNOWN
Unknown error
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns the error code for General errors.
|
java.lang.String |
getErrorText()
Returns the error text.
|
int |
getErrorType()
Returns the type of CIMD2 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.
|
getException, printStackTrace, printStackTrace, printStackTrace
public static final int ERROR_TYPE_GENERAL
public static final int ERROR_TYPE_NACK
public static final int ERROR_TYPE_INTEGRITY
public static final int ERROR_TYPE_GENERIC
public static final int ERROR_TYPE_UNKNOWN
public static final int ERROR_CODE_UNKNOWN
public java.lang.String getMessage()
MessageException
getMessage
in class MessageException
public int getErrorType()
ERROR_TYPE_GENERAL
,
ERROR_TYPE_NACK
, ERROR_TYPE_GENERIC
,
ERROR_TYPE_UNKNOWN
, ERROR_TYPE_INTEGRITY
)public int getErrorCode()
ERROR_TYPE_NACK
, the
error code returned is ERROR_CODE_UNKNOWN
.public java.lang.String getErrorText()
public boolean isSequenceMismatch()
public boolean isOffsetMismatch()
object XP, Inc. © 2000-2013. All rights reserved object XP