pub enum ZerobusError {
ConfigurationError(String),
AuthenticationError(String),
ConnectionError(String),
ConversionError(String),
TransmissionError(String),
RetryExhausted(String),
TokenRefreshError(String),
}Expand description
Error type for wrapper operations
All errors are descriptive and actionable, providing sufficient information for developers to diagnose and resolve issues.
Variants§
ConfigurationError(String)
Invalid configuration error
Occurs when configuration values are invalid or missing required fields.
AuthenticationError(String)
Authentication failure error
Occurs when authentication with Zerobus fails (invalid credentials, expired tokens, etc.).
ConnectionError(String)
Network/connection error
Occurs when network connectivity is lost or connection to Zerobus fails.
ConversionError(String)
Arrow to Protobuf conversion failure
Occurs when Arrow RecordBatch data cannot be converted to Protobuf format.
TransmissionError(String)
Data transmission failure
Occurs when data transmission to Zerobus fails.
RetryExhausted(String)
All retry attempts exhausted
Occurs when all retry attempts for transient failures have been exhausted.
TokenRefreshError(String)
Token refresh failure
Occurs when authentication token refresh fails.
Implementations§
Source§impl ZerobusError
impl ZerobusError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if the error is retryable
Returns true for transient errors that should be retried:
- ConnectionError
- TransmissionError (if transient)
Sourcepub fn is_token_expired(&self) -> bool
pub fn is_token_expired(&self) -> bool
Check if the error indicates token expiration
Returns true if the error suggests the authentication token has expired.
Trait Implementations§
Source§impl Clone for ZerobusError
impl Clone for ZerobusError
Source§fn clone(&self) -> ZerobusError
fn clone(&self) -> ZerobusError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ZerobusError
impl Debug for ZerobusError
Source§impl Display for ZerobusError
impl Display for ZerobusError
Source§impl Error for ZerobusError
impl Error for ZerobusError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for ZerobusError
impl RefUnwindSafe for ZerobusError
impl Send for ZerobusError
impl Sync for ZerobusError
impl Unpin for ZerobusError
impl UnwindSafe for ZerobusError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§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.