#[non_exhaustive]pub enum ZerobusSinkError {
Transient(String),
Poison(String),
FatalConfig(String),
WriteBoundary(String),
Catalog(String),
Encode(String),
}Expand description
Everything that can go wrong in the Zerobus sink.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Transient(String)
A transient transport error — retry on the existing stream after backoff.
Poison(String)
The stream is unrecoverable and must be rebuilt (closed transport, credential revoked, unexpected permanent transport error).
FatalConfig(String)
Configuration is invalid and the sink must not start / must fail loudly (e.g. a primary-raw precondition is unmet).
WriteBoundary(String)
A write-boundary type mismatch that could not be reconciled, with the offending column named — never an opaque per-batch rejection.
Catalog(String)
The table catalog (provisioning / credential vending) failed.
Encode(String)
Encoding the Arrow batch to IPC bytes failed.
Implementations§
Source§impl ZerobusSinkError
impl ZerobusSinkError
Sourcepub fn class(&self) -> ErrorClass
pub fn class(&self) -> ErrorClass
The recovery class of this error.
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
Whether the error should be retried on the existing stream after backoff.
Sourcepub fn from_transport(retryable: bool, message: impl Into<String>) -> Self
pub fn from_transport(retryable: bool, message: impl Into<String>) -> Self
Map a transport-level “retryable?” flag (as the Databricks SDK reports via
ZerobusError::is_retryable) to the sink’s transient/poison split.
Trait Implementations§
Source§impl Debug for ZerobusSinkError
impl Debug for ZerobusSinkError
Source§impl Display for ZerobusSinkError
impl Display for ZerobusSinkError
Source§impl Error for ZerobusSinkError
impl Error for ZerobusSinkError
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
Source§impl From<ZerobusSinkError> for SinkError
impl From<ZerobusSinkError> for SinkError
Source§fn from(e: ZerobusSinkError) -> Self
fn from(e: ZerobusSinkError) -> Self
Auto Trait Implementations§
impl Freeze for ZerobusSinkError
impl RefUnwindSafe for ZerobusSinkError
impl Send for ZerobusSinkError
impl Sync for ZerobusSinkError
impl Unpin for ZerobusSinkError
impl UnwindSafe for ZerobusSinkError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].