messagepack_cli/error.rs
1//! Errors that happen during the execution.
2
3use thiserror::Error;
4
5/// CLI error.
6#[derive(Debug, Error)]
7pub enum Error {
8 /// Multiple conversion directions specified.
9 #[error("Multiple conversion directions specified")]
10 MultipleConversionDirections,
11
12 /// Error reading input file.
13 #[error("Error reading input file")]
14 FileRead,
15 /// Error writing output file.
16 #[error("Error writing output file")]
17 FileWrite,
18
19 /// Automatic conversion direction detection error.
20 #[error("Failed automatic converstion direction detection")]
21 AutomaticDetection,
22
23 /// Error transcoding the data between formats.
24 #[error("Error transcoding between data formats")]
25 Transcoding,
26}