cala_ledger_outbox_client/
error.rs

1use thiserror::Error;
2use tonic::transport;
3
4#[derive(Error, Debug)]
5pub enum CalaLedgerOutboxClientError {
6    #[error("CalaLedgerOutboxError - Connection: {0}")]
7    ConnectionError(#[from] transport::Error),
8    #[error("CalaLedgerOutboxError - Tonic: {0}")]
9    TonicError(#[from] tonic::Status),
10    #[error("CalaLedgerOutboxError - Tonic: {0}")]
11    DecodeError(#[from] prost::DecodeError),
12    #[error("CalaLedgerOutboxError - Uuid: {0}")]
13    Uuid(#[from] uuid::Error),
14    #[error("CalaLedgerOutboxError - Serde: {0}")]
15    Serde(#[from] serde_json::Error),
16    #[error("CalaLedgerOutboxError - MissingField")]
17    MissingField,
18    #[error("CalaLedgerOutboxError - UnknownEnumValue")]
19    UnknownEnumValue(#[from] prost::UnknownEnumValue),
20    #[error("CalaLedgerOutboxError - CelError: {0}")]
21    CelError(#[from] cel_interpreter::CelError),
22    #[error("CalaLedgerOutboxError - ChronoError: {0}")]
23    ChronoError(#[from] chrono::ParseError),
24    #[error("CalaLedgerOutboxError - DecimalError: {0}")]
25    DecimalError(#[from] rust_decimal::Error),
26    #[error("CalaLedgerOutboxError - ParseCurrencyError: {0}")]
27    ParseCurrencyError(#[from] cala_types::primitives::ParseCurrencyError),
28}