bitwarden_ipc/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use thiserror::Error;

#[derive(Clone, Debug, Error, PartialEq, Eq)]
pub enum SendError<Crypto, Com> {
    #[error("Crypto error: {0}")]
    CryptoError(Crypto),

    #[error("Communication error: {0}")]
    CommunicationError(Com),
}

#[derive(Clone, Debug, Error, PartialEq, Eq)]
pub enum ReceiveError<Crypto, Com> {
    #[error("Crypto error: {0}")]
    CryptoError(Crypto),

    #[error("Communication error: {0}")]
    CommunicationError(Com),
}