eric-sdk 0.5.0

Rust SDK for the ELSTER Rich Client (ERiC)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Debug, Error)]
pub enum EricError {
    #[error("API Error (code={code}): {message}, validation={validation_response}, server={server_response}")]
    ApiError {
        code: i32,
        message: String,
        validation_response: String,
        server_response: String,
    },
    /// Unstructured catch all for internal errors
    #[error("Internal error: {0}")]
    Internal(#[from] anyhow::Error),
}