]>
code.octet-stream.net Git - m17rt/blob - m17app/src/error.rs
c1bcac1e2950da9b5cdffb1e58e6f6cf1df87007
1 use std
::path
::PathBuf
;
5 #[derive(Debug, Error, PartialEq, Eq, Clone)]
7 #[error("given callsign contains at least one character invalid in M17: {0}")]
8 InvalidCallsignCharacters(char),
10 #[error("given callsign is {0} characters long; maximum is 9")]
11 CallsignTooLong(usize),
13 #[error("error during soundcard initialisation")]
16 #[error("unable to locate sound card '{0}' - is it in use?")]
17 SoundcardNotFound(String
),
19 #[error("unable to set up RTL-SDR receiver")]
23 "provided packet payload is too large: provided {provided} bytes, capacity {capacity}"
25 PacketTooLarge
{ provided
: usize, capacity
: usize },
27 #[error("provided path to RRC file could not be opened: {0}")]
28 InvalidRrcPath(PathBuf
),
30 #[error("failed to read from RRC file: {0}")]
31 RrcReadFailed(PathBuf
),