OstiumErrorfor client creation, transaction building, signing, submission, and contract interactionOstiumSubgraphErrorfor subgraph reads, builder API reads, parsing, and stream-related data lookups
OstiumError
OstiumError is thrown by the main OstiumClient surface.
Error codes
OstiumSubgraphError
OstiumSubgraphError is thrown by read methods backed by the subgraph or builder API.
Error codes
Recommended handling
- Catch
OstiumErroraround trade setup and write methods. - Catch
OstiumSubgraphErroraround read methods and streams. - Log both
error.codeanderror.message. - If present, inspect
error.causefor the underlying RPC, contract, or fetch error.