|
|||||||||
| 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
org.jscience.devices.gps.garmin.InvalidPacketException
public class 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. i is the index of the byte that was in error. |
|
| 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)
pack - DOCUMENT ME!i - DOCUMENT ME!| 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 | ||||||||