pub enum BetterStackError {
HttpError(Error),
SerializationError(String),
ConfigError(String),
RuntimeError(String),
}
Expand description
Error types that can occur when using the Better Stack tracing layer.
This enum represents all possible errors that can be returned by the library, including network errors, serialization issues, and configuration problems.
Variants§
HttpError(Error)
HTTP request error when communicating with Better Stack.
This includes network errors, timeouts, and connection issues.
SerializationError(String)
Serialization error when formatting log events.
This occurs when log data cannot be serialized to the configured format (JSON or MessagePack).
ConfigError(String)
Configuration error for invalid settings.
This occurs when provided configuration values are invalid or incompatible.
RuntimeError(String)
Runtime error for operational issues.
This includes Better Stack API errors and other runtime failures.
Trait Implementations§
Source§impl Debug for BetterStackError
impl Debug for BetterStackError
Source§impl Display for BetterStackError
impl Display for BetterStackError
Source§impl Error for BetterStackError
impl Error for BetterStackError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for BetterStackError
impl From<Error> for BetterStackError
Source§impl From<Error> for BetterStackError
impl From<Error> for BetterStackError
Auto Trait Implementations§
impl Freeze for BetterStackError
impl !RefUnwindSafe for BetterStackError
impl Send for BetterStackError
impl Sync for BetterStackError
impl Unpin for BetterStackError
impl !UnwindSafe for BetterStackError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.