jwo.landserf.process.gps.garmin
Class InvalidPacketException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jwo.landserf.process.gps.garmin.InvalidPacketException
- All Implemented Interfaces:
- Serializable
public class InvalidPacketException
- extends RuntimeException
Represents a problem in the form of a packet transferred to or
from the GPS.
- Version:
- 2.3, 22nd August, 2006.
- Author:
- Jo Wood, based on the design by Henrik Sorensen (haas@itu.dk).
- See Also:
- Serialized Form
Method Summary |
GarminPacket |
getPacket()
Reports the packet that caused the exception to be thrown. |
String |
toString()
Provides formatted text showing the packet with the problem. |
InvalidPacketException
public InvalidPacketException(GarminPacket packet)
- Creates an InvalidPacketException.
- Parameters:
packet
- Packet containing the error.
getPacket
public GarminPacket getPacket()
- Reports the packet that caused the exception to be thrown.
- Returns:
- Array representing the packet that generated the exception.
toString
public String toString()
- Provides formatted text showing the packet with the problem.
- Overrides:
toString
in class Throwable
- Returns:
- Description of the problematic packet.
Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009