Skip to main content

Module error

Module error 

Source
Expand description

Error types for ExecutionClient operations.

§Retry Semantics

Use ClientError::is_transient to determine if an operation should be retried. Transient errors (connectivity issues, rate limits) may succeed on retry with appropriate backoff. Non-transient errors (invalid instrument, insufficient balance) will fail identically on retry — the caller must change the request.

The is_transient() method is the stable contract for retry decisions. Prefer it over pattern matching on specific variants, as the internal taxonomy may evolve while is_transient() semantics remain stable.

Structs§

AccountReinitFailure
A failed attempt to re-initialise an account stream after it ended.
BorrowReject
Why a venue refused to lend for an order, as carried by ApiError::BorrowRejected.
BoundsViolation
A value in an order request that is below a venue minimum or above a venue maximum.
PrecisionViolation
A value in an order request with more precision than the venue accepts, or that is not positive.

Enums§

AccountStreamInitError
Why an attempt to initialise an account stream, its snapshot and its updates, failed.
ApiError
Represents all API errors generated by an exchange.
BorrowRejectReason
The kind of borrow refusal carried by a BorrowReject.
Bound
Which end of a range a BoundsViolation broke.
ClientError
Represents all errors produced by an ExecutionClient.
ConnectivityError
Represents all connectivity-centric errors.
KeyError
Represents errors related to exchange, asset and instrument identifier key lookups.
NotPlacedReason
How an order is known not to have been placed.
OrderError
Represents all errors that can be generated when cancelling or opening orders.
OrderField
A value of an order request, as named by a PrecisionViolation or BoundsViolation.
PrecisionLimit
A venue’s precision rule, as broken by a PrecisionViolation.
StreamTerminationReason
Why an account event stream ended.

Type Aliases§

UnindexedAccountStreamInitError
Type alias for an AccountStreamInitError that is keyed on AssetNameExchange and InstrumentNameExchange (yet to be indexed).
UnindexedApiError
Type alias for a ApiError that is keyed on AssetNameExchange and InstrumentNameExchange (yet to be indexed).
UnindexedClientError
Type alias for a ClientError that is keyed on AssetNameExchange and InstrumentNameExchange (yet to be indexed).
UnindexedOrderError
Type alias for a OrderError that is keyed on AssetNameExchange and InstrumentNameExchange (yet to be indexed).