|
|||||||||||
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 | +--java.lang.RuntimeException | +--dk.itu.haas.GPS.Garmin.InvalidPacketException
This method is thrown from the constructors of the packet-classes, whenever the int[]-array is not formatted according to the Garmin-packet-specs.
Constructor Summary | |
InvalidPacketException(int[] pack,
int i)
Creates an InvalidPacketException. pack is a reference to the byte-array that caused the exception. |
Method Summary | |
int |
getIndex()
Returns the index of the first erroneously configured byte. |
int[] |
getPacket()
Returns the packet that caused the exception to be thrown. |
java.lang.String |
toString()
Returns a formatted string 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[] pack, int i)
Method Detail |
public int[] getPacket()
public int getIndex()
public java.lang.String toString()
toString
in class java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |