Skip to content

ietfparse.errors

ietfparse.errors.RootException

Root of the ietfparse exception hierarchy.

ietfparse.errors.NoMatch

No match was found when selecting a content type.

ietfparse.errors.MalformedBaggage(header_value)

Attempted to parse a malformed Baggage header.

This is raised by ietfparse.headers.parse_baggage when it is called in strict mode and a list-member does not conform to the grammar in https://www.w3.org/TR/baggage/.

ietfparse.errors.MalformedContentType(header_value)

Attempted to parse a malformed Content-Type header.

ietfparse.errors.MalformedLinkValue

Value specified is not a valid link header.

ietfparse.errors.MalformedListSegment(segment)

A list item contained invalid quoted-string syntax.

ietfparse.errors.StrictHeaderParsingFailure(header_name, header_value)

Non-standard header value detected.

This is raised when "strict" conformance is enabled for a header parsing function and a header value fails due to one of the "strict" rules.

See ietfparse.headers.parse_forwarded for an example.