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
urlwith 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::Responsefrom areqwest::Response. Reads up toRESPONSE_BODY_CAPbytes of the body so a giant error page can’t blow up memory.
Type Aliases§
- Result
- Result alias used across the crate.