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

Handle all possible Guzzle request exceptions #879

Merged
merged 1 commit into from
Jul 19, 2021

Commits on Jul 19, 2021

  1. Handle all possible Guzzle request exceptions

    `RequestException` is just a subset of possible exceptions thrown while performing the request.
    For example, connection failure leads to `ConnectException` and so on.
    
    The best way is to catch all `GuzzleException` instances and wrap them in `TelegramSDKException`.
    
    Also, I added the original exception as an argument to `TelegramSDKException` so it can be retrieved in the app later.
    b1rdex authored Jul 19, 2021
    Configuration menu
    Copy the full SHA
    d19b25b View commit details
    Browse the repository at this point in the history