javax.microedition.ipdr.callback.msg
Interface ErrorInfo

All Superinterfaces:
MessageInfo

public interface ErrorInfo
extends MessageInfo

The interface represents an ERROR message information.

Version:
1.0
Author:
Shai Gotlib

Method Summary
 java.lang.String getDescription()
          Returns the error description
 short getErrorCode()
          Returns the error code The error code field consists two parts: (1) Session oriented flag: it is a one bit flag.
 boolean getSessionSpecific()
          Returns whether it is session specific error
 int getTimeStamp()
          Returns the time stamp.
 
Methods inherited from interface javax.microedition.ipdr.callback.msg.MessageInfo
msgId, msgName, toString
 

Method Detail

getDescription

public java.lang.String getDescription()
Returns the error description

Returns:
Error description (String value)

getErrorCode

public short getErrorCode()
Returns the error code The error code field consists two parts: (1) Session oriented flag: it is a one bit flag. It is the MSB of the errorCode field. It indicates whether the error is specific for the session (=1) or it is a general error and thus it is not specific to the session (=0). (2) The code ID: The rest 15 LSBs of the errorCode field, specifies the error code ID (0 - 32767). Values of 0-255 are reserved forstandard error codes. 0 = keepalive expired 1 = Message invalid for capabilities 2 = Message invalid for state 3 = Message decode error 4 = process terminating Values > 255 may be used for vendor specific error codes

Returns:
The error code (short value)

getSessionSpecific

public boolean getSessionSpecific()
Returns whether it is session specific error

Returns:
true if it is session specific error, false otherwise see getErrorCode()

getTimeStamp

public int getTimeStamp()
Returns the time stamp. Time of error (in seconds from epoch

Returns:
Time of error (int value)