Skip to main content

Module errors

Module errors 

Source
Expand description

Crate-level error type. Mirrors bee-go’s BeeError / BeeArgumentError / BeeResponseError hierarchy as a single Rust enum so callers can match on the variant.

Enums§

Error
All errors surfaced from bee-rs.

Constants§

RESPONSE_BODY_CAP
Cap on captured response bodies so a huge error page can’t OOM.

Functions§

redact_url
Return a printable form of url with the query string and fragment stripped. Used by the HTTP send path and error formatter so that values the request put in the query string — SOC signatures (?sig=), Act publisher keys (?recipient=), or an auth token mistakenly passed there — never end up in logs or panics. The path is preserved (path segments are hex / identifier-only and considered public).
response_error_from
Build an Error::Response from a reqwest::Response. Reads up to RESPONSE_BODY_CAP bytes of the body so a giant error page can’t blow up memory.

Type Aliases§

Result
Result alias used across the crate.