#[non_exhaustive]pub enum SourceError {
Connection(String),
Setup(String),
Decode(String),
Query(String),
Unsupported(String),
}Expand description
Why a ChangeCapture failed to start or to
produce the next change.
The split that matters to the engine is transient vs. fatal:
Connection is worth retrying (resume picks up from the
last confirmed point), while Setup needs operator
intervention.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Connection(String)
The connection to Postgres dropped or could not be established. Transient: the engine may retry, and the mechanism resumes from its last confirmed point.
Setup(String)
Setup the mechanism depends on is missing or invalid — a dropped
replication slot, a missing publication, wal_level too low, missing
privileges. Not recoverable by retrying.
Decode(String)
A raw change could not be decoded into a Change.
Query(String)
A query against the source failed (assembling or resolving a document).
Unsupported(String)
The configuration uses a feature the active source implementation does not support yet.
Trait Implementations§
Source§impl Debug for SourceError
impl Debug for SourceError
Source§impl Display for SourceError
impl Display for SourceError
Source§impl Error for SourceError
impl Error for SourceError
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
use the Display impl or to_string()