ts-dune-client icon indicating copy to clipboard operation
ts-dune-client copied to clipboard

Way Better Error Handling

Open bh2smith opened this issue 3 months ago • 0 comments

Currently our error handling is WEAK AF! Just look how crappy this is:

https://github.com/bh2smith/ts-dune-client/blob/abef0d0f8c31c07ccf461a4038b6e770ddb25360/src/types/error.ts#L1-L7

The docs specify error codes on each route and when they occur (e.g. execute query)

We should have Enums that capture all possible errors instead of the weak-ass error class linked above.

bh2smith avatar Mar 26 '24 22:03 bh2smith