ej_builder_sdk/error.rs
1//! Error types for the builder SDK.
2
3/// Builder SDK errors.
4#[derive(thiserror::Error, Debug)]
5pub enum Error {
6 /// Not enough command line arguments provided.
7 #[error("Not enough arguments provided. Expected {0}. Got {1}")]
8 MissingArgs(usize, usize),
9
10 /// I/O operation failed.
11 #[error(transparent)]
12 IO(#[from] std::io::Error),
13
14 /// JSON serialization/deserialization failed.
15 #[error(transparent)]
16 Json(#[from] serde_json::Error),
17}