Skip to main content

Module error

Module error 

Source
Expand description

The resolver’s error taxonomy.

Two failure classes are deliberately kept apart (see the module docs on crate::resolver):

  • Hard, fail-closed errorsResolveError — a malformed URN, a not-found resource, or a verify/decrypt failure. A verify failure means the served bytes did not chain to the trusted on-chain root (tampered / decoy): the resolver NEVER returns those bytes, it fails closed.
  • The network-unreachable state — NOT an error. When every transport tier is unreachable the resolver returns a branded HTML document via crate::ResolvedData with unreachable == true, so a consuming webview can render a friendly “connect a node” page instead of a crash.

Enums§

ResolveError
A hard, fail-closed resolution failure. Distinct from the network-unreachable state, which is a successful crate::ResolvedData carrying a branded page.

Type Aliases§

Result
Result alias for resolver operations.