Skip to main content

Module error

Module error 

Source
Expand description

Error types.

Every rejection names what was wrong. A single opaque Invalid variant is not good enough: the transaction layer chooses between 400, 413 and 505 based on which fault this was, and an operator reading a log needs to know which byte offended.

Enumsยง

AddressEditError
Why a parser-owned address value could not be edited losslessly.
BuildError
A message that could not be built.
FramingError
Why a body could not be delimited.
HeaderError
A header whose value could not be parsed, or whose value is out of range.
HeaderSyntaxError
What was wrong with a header field line.
LimitKind
Which limit was exceeded.
ParseError
A message that could not be framed or whose structure is malformed.
StartLineError
What was wrong with a start line.
UriError
A URI that could not be parsed.
WarningEditError
Why a parser-owned Warning agent could not be edited losslessly.