|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception javax.microedition.ipdr.ProtocolMalformedMsgException
Represents the exception which provides the information about a mal-formed message.
This exception is being used for reporting cases where the received message is in a garbled form.
Field Summary | |
int |
offset
The offset within the message bytes where the problem was detected. |
byte[] |
rawMsg
The message raw bytes (including header). |
int |
rawMsgLength
The message raw bytes length. |
Fields inherited from class java.lang.Exception |
|
Constructor Summary | |
ProtocolMalformedMsgException(java.lang.String msg,
byte[] rawMsg,
int length,
int offset)
Creates an exception (should never happen if the transmitter is performing properly). |
Method Summary | |
java.lang.String |
getMessage()
Gets the detail messages about this exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public byte[] rawMsg
public int rawMsgLength
public int offset
Constructor Detail |
public ProtocolMalformedMsgException(java.lang.String msg, byte[] rawMsg, int length, int offset)
msg
- message that describes what went wrong.rawMsg
- The IPDR protocol message from the collector.length
- The length of the IPDR protocol message.offset
- Offset regrding where the problem was discovered inside the IPDR protocol message.Method Detail |
public java.lang.String getMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |