Skip to main content

Crate cow_errors

Crate cow_errors 

Source
Expand description

cow-errors — shared error type for the CoW Protocol SDK.

CowError is the unified error type used across the workspace. Every fallible function in the SDK currently returns Result<T, CowError>.

Per architecture rule 8 (errors per-domain + aggregation), this crate is a migration stopgap: future phases will split CowError into per-crate error types (SigningError, OrderbookError, …) and aggregate them via a façade-level SdkError.

§Variants

VariantWhen
UnknownAssetAsset symbol not in the token registry
ApiOrderbook/subgraph returned non-2xx
HttpNetwork transport failure
SigningECDSA / EIP-712 signing failure
ParseField parsing / deserialisation error
AppDataApp-data encoding / hashing failure
RpcJSON-RPC error from an Ethereum node
UnsupportedFeature not available on chain/config
ConfigSDK configuration error
ZeroQuantityTrade amount is zero

Enums§

CowError
Errors that can occur when interacting with the CoW Protocol SDK.