nexrad_decode/result.rs
1//!
2//! Contains the Result and Error types for NEXRAD operations.
3//!
4
5use thiserror::Error as ThisError;
6
7pub type Result<T> = std::result::Result<T, Error>;
8
9#[derive(ThisError, Debug)]
10pub enum Error {
11 #[error("data file IO error")]
12 FileError(#[from] std::io::Error),
13 #[error("file deserialization error")]
14 DeserializationError(#[from] bincode::Error),
15 #[error("file decoding error: {0}")]
16 DecodingError(String),
17 #[error("message is missing collection date/time")]
18 MessageMissingDateError,
19}