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
Show numeric code instead of UNKNOWN_ERROR
#689
Conversation
@mdavidsaver can you check the failing CI? |
Seems formatting only, you can use the Spotless plugin: |
2baa5b3
to
4b8abc7
Compare
Done. |
I have 2 questions:
|
fyi. this small PR came about while troubleshooting an afternoon project ~9 months ago. I'd like to help others avoid some frustration, but there are limits to the time I can spend on it. If there are some quick changes I can make to get this merged, then please state this clearly. I'm not going to be offended. Likewise if someone would like to take this PR and go further, or do something different.
As a further idea. I also noticed |
I think your PR has value, and i approach it with external eyes, hopefully we can make it beneficial for everyone. I think the error code displayed will make more sense if it can be looked up using the SQLite webpage.
I think having the enums in Java make sense, as it can be used within the code to perform various conditions and checks. I also agree with you, we shouldn't touch JNI more than necessary 😅 I will try to update your PR to display decimal codes, and i will try to include the missing codes too. |
b023c87
to
69fda11
Compare
Helps in interpreting extended error codes which aren't included in the current
SQLiteErrorCode
.In my case, allowed me to discover that
was really
aka.
SQLITE_READONLY_DIRECTORY
because while my DB file was writable, the directory was not...