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

[Bugs] BunnyCDNException dont work properly #63

Open
LackFos opened this issue May 29, 2023 · 0 comments
Open

[Bugs] BunnyCDNException dont work properly #63

LackFos opened this issue May 29, 2023 · 0 comments

Comments

@LackFos
Copy link

LackFos commented May 29, 2023

Hey, I noticed something peculiar. By default, both BunnyCDNClient and BunnyCDNAdapter share the same exception handler, which is BunnyCDNExceptions. However, when attempting to perform actions with invalid credentials or invalid operations like deleting an invalid file, I couldn't catch the errors using the try block. After spending a considerable amount of time investigating the issue, I discovered that creating a new exception and using different exception handlers for BunnyClient and BunnyAdapter allows the errors to be thrown correctly.

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