|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jwo.landserf.process.gps.garmin.InvalidPacketException
Represents a problem in the form of a packet transferred to or from the GPS.
Constructor Summary | |
InvalidPacketException(int[] packet,
int pos)
Creates an InvalidPacketException. |
Method Summary | |
int |
getIndex()
Reports the index of the first erroneously configured byte. |
int[] |
getPacket()
Reports the packet that caused the exception to be thrown. |
String |
toString()
Provides formatted text showing which byte is wrong. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InvalidPacketException(int[] packet, int pos)
packet
- Reference to the byte array that caused the exception.pos
- Position offset of the byte that was in error.Method Detail |
public int[] getPacket()
public int getIndex()
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |