sentrystr_tracing/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum TracingError {
5 #[error("SentryStr core error: {0}")]
6 SentryStr(#[from] sentrystr::SentryStrError),
7
8 #[error("Nostr SDK error: {0}")]
9 NostrSdk(#[from] nostr_sdk::client::Error),
10
11 #[error("Configuration error: {0}")]
12 Config(String),
13
14 #[error("Initialization error: {0}")]
15 Init(String),
16
17 #[error("Field extraction error: {0}")]
18 FieldExtraction(String),
19}