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

No unique exception code is thrown for certain exceptions #2257

Closed
arcanelab opened this issue Dec 1, 2022 · 1 comment · Fixed by #2259
Closed

No unique exception code is thrown for certain exceptions #2257

arcanelab opened this issue Dec 1, 2022 · 1 comment · Fixed by #2259

Comments

@arcanelab
Copy link
Contributor

arcanelab commented Dec 1, 2022

Version: 5.0.12.

When trying to open an unencrypted database with a password in the connection string, I get the following exception: "This file is not encrypted". Unfortunately the exception is thrown with a generic code of 0, so I can't check for this particular use-case in the exception handler. Is there a particular reason why a dedicated error code was not added for this exception?

@ProKn1fe
Copy link

ProKn1fe commented Dec 1, 2022

I think no, author just forget about this part of code. There is a ton's exceptions with code 0.

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