pub enum GASPError {
DefinitiveNotFound(String),
CourierBudget,
VersionMismatch {
local: u32,
remote: u32,
},
InvalidTimestamp(String),
NodeNotFound(String),
ValidationFailed(String),
RemoteError(String),
RouteFault {
class: String,
detail: 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.
Since engine 0.1.15 it counts one run of absence beside the peer’s
word (fault_class::NOT_FOUND), never a strike by itself.
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.
RouteFault
The platform answered before the peer was reached (engine 0.2.0,
bsv-overlay-cloudflare #57; crate::route_fault): a fault of the
route, never of the peer. It counts nothing against the peer’s
health rows and is named route_fault:<class>.
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()