1 2 3 4 5 6 7 8 9 10 11 12 13
use thiserror::Error; #[derive(Error, Debug)] pub enum SignalWireError { #[error("HTTP request failed with status: {0}")] HttpError(String), #[error("Unauthorized access")] Unauthorized, #[error("Unexpected error: {0}")] Unexpected(String), }