Skip to main content

Module error

Module error 

Source
Expand description

Error types for Braid HTTP operations.

This module defines all error types that can occur when using the Braid-HTTP protocol. The Result type alias provides a convenient shorthand for operations that may fail.

§Error Categories

CategoryVariantsRetryable
ProtocolHeaderParse, BodyParse, InvalidVersionNo
NetworkIo, TimeoutYes
SubscriptionSubscriptionClosed, InvalidSubscriptionStatusDepends
ConflictMergeConflict, HistoryDroppedNo
ConfigurationConfigNo

§Error Recovery

Use the BraidError::is_retryable() method to determine if an operation should be retried. Most network errors are retryable; protocol errors typically are not.

§Specification

See Section 4.5 of draft-toomim-httpbis-braid-http-04 for error handling requirements.

Enums§

BraidError
Errors that can occur during Braid HTTP operations.

Type Aliases§

Result
Result type for Braid HTTP operations.