bitwarden_exporters/cxp/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
use std::borrow::Cow;

use thiserror::Error;

#[derive(Error, Debug)]
pub enum CxpError {
    #[error("JSON error: {0}")]
    Serde(#[from] serde_json::Error),

    #[error("Internal error: {0}")]
    Internal(Cow<'static, str>),
}