pub enum GASPError {
DefinitiveNotFound(String),
CourierBudget,
VersionMismatch {
local: u32,
remote: u32,
},
InvalidTimestamp(String),
NodeNotFound(String),
ValidationFailed(String),
RemoteError(String),
StorageError(String),
AnchorUnavailable(String),
AnchorWalkHeld(String),
Other(String),
}Expand description
GASP protocol errors.
Variants§
DefinitiveNotFound(String)
Every enabled raw rung answered absence, with no skipped or failed rung.
CourierBudget
The pass spent its courier allowance; retain its pending walk.
VersionMismatch
Version mismatch between peers.
InvalidTimestamp(String)
Invalid timestamp format.
NodeNotFound(String)
Node not found.
ValidationFailed(String)
Graph validation failed.
RemoteError(String)
Network/communication error.
StorageError(String)
Storage error.
A graph’s anchor could not be CHECKED right now (the chain tracker or
a storage read faulted, or the topic manager answered the replay with
an error): a fault of the moment, not a verdict on the graph. GASPSync::complete_graph discards the graph and fails the
UTXO, so the cursor gap guard asks for it again (bsv-low #551).
AnchorWalkHeld(String)
The anchor’s script walk could not run within the engine’s walk
budget (bsv-low #592; the E592 lens fold, H1): no verdict, and
nothing stands in for one (no network accepted these bytes). Held
exactly as GASPError::AnchorUnavailable holds: the graph is not
finalized, the UTXO fails and the cursor stays below it, until the
peer serves its root PROVEN (#555’s root_proven restart, whose walk
trusts the proof and runs no script). Counted apart
(GASPSync::anchor_walk_held).
Other(String)
Generic error.
Trait Implementations§
Source§impl Error for GASPError
impl Error for GASPError
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()