pub enum AprsError {
Show 15 variants
InvalidFormat,
InvalidCoordinates,
MicERequiresDestination,
InvalidPath(String),
MessageTooLong(usize),
InvalidLatitude(&'static str),
InvalidLongitude(&'static str),
InvalidSpeed(&'static str),
InvalidCourse(&'static str),
InvalidMessageId(&'static str),
InvalidTemperature(&'static str),
InvalidSymbolTable(&'static str),
InvalidSymbol(&'static str),
InvalidTocall(&'static str),
InvalidDigipeaterAlias(&'static str),
}Expand description
Errors produced by APRS parsing, building, and stateful algorithms.
Variants§
InvalidFormat
The info field is too short or has an unrecognized data type.
InvalidCoordinates
The position coordinates could not be parsed.
MicERequiresDestination
Mic-E data requires the AX.25 destination address for decoding.
InvalidPath(String)
A digipeater path string could not be parsed.
MessageTooLong(usize)
The message text is too long (APRS 1.0.1 §14: max 67 characters).
InvalidLatitude(&'static str)
Latitude is not finite or outside -90.0..=90.0.
InvalidLongitude(&'static str)
Longitude is not finite or outside -180.0..=180.0.
InvalidSpeed(&'static str)
Speed value is out of range.
InvalidCourse(&'static str)
Course is outside 0..=360 degrees.
InvalidMessageId(&'static str)
Message ID is empty, too long, or contains non-alphanumeric bytes.
InvalidTemperature(&'static str)
Temperature (Fahrenheit) is outside -99..=999.
InvalidSymbolTable(&'static str)
Symbol table code is not /, \, 0-9, or A-Z.
InvalidSymbol(&'static str)
APRS symbol code is outside the printable ASCII range.
InvalidTocall(&'static str)
Tocall string does not satisfy callsign format rules.
InvalidDigipeaterAlias(&'static str)
Digipeater alias failed validation (empty, non-ASCII).