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
| Variant | When |
|---|---|
UnknownAsset | Asset symbol not in the token registry |
Api | Orderbook/subgraph returned non-2xx |
Http | Network transport failure |
Signing | ECDSA / EIP-712 signing failure |
Parse | Field parsing / deserialisation error |
AppData | App-data encoding / hashing failure |
Rpc | JSON-RPC error from an Ethereum node |
Unsupported | Feature not available on chain/config |
Config | SDK configuration error |
ZeroQuantity | Trade amount is zero |
Enums§
- CowError
- Errors that can occur when interacting with the
CoWProtocol SDK.