Skip to content

Feature Request: allow customized error handling #494

@Abdelgha-4

Description

@Abdelgha-4

The actual exception handing has two limitation:

  • The actual exception object is inaccessible
  • The current handle_exceptions decorators does not allow for custom error handling strategy

Ideally SolanaExceptionBase should store the inner exception object if the user code needs to handle it in a specific way, (examples: change the proxy on proxy errors, retry on connection errors, wait on rate limits etc...)

Also since the handle_exceptions decorators catch all occurring exceptions it'd be nice if you could specify the error handling logic there, it'd provide a centralized place for shared exception handling logic across all the methods.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions