Skip to content

Add structured error handling for BOB SDK #731

@nakul1010

Description

@nakul1010

Description:
Right now we just throw string errors, which makes it hard to handle them properly. We should add a proper error structure (similar to Fusion API) so we can distinguish between validation, API, and onchain errors.

For reference, Fusion API already follows this approach: https://github.com/bob-collective/bob-fusion-api/tree/bc49ad60875a88ef7033075ba59869a9f017f14a/src/errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    New 🆕

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions