Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: allow customized error handling #494

Open
Abdelgha-4 opened this issue Jan 15, 2025 · 0 comments
Open

Feature Request: allow customized error handling #494

Abdelgha-4 opened this issue Jan 15, 2025 · 0 comments

Comments

@Abdelgha-4
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant