Module batch_errors

Source
Expand description

Batch order error handling with separation of transport-level and per-order errors

This module provides specialized error types for batch operations that distinguish between:

  • Transport-level errors: Network, authentication, rate limiting - affect the entire batch
  • Per-order errors: Invalid symbols, insufficient balance - affect individual orders only

This separation allows for better error handling strategies, more accurate reporting, and improved debugging capabilities.

Structs§

BatchErrorStats
Statistics for batch error analysis
BatchResult
Comprehensive result for batch operations
BatchSummary
Summary statistics for a batch operation

Enums§

BatchOrderError
Errors specific to batch order operations
BatchStatus
Status of a batch operation
OrderResult
Result for an individual order within a batch operation

Traits§

ErrorClassification
Helper trait for converting EMSError to determine if per-order errors

Type Aliases§

OrderResultMap
Map of order results indexed by order ID or client order ID