Content-Length: 242937 | pFad | https://github.com/robolectric/robolectric/pull/8615

A7 Improve the fidelity of legacy SQLite error messages by hoisie · Pull Request #8615 · robolectric/robolectric · GitHub
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

Improve the fidelity of legacy SQLite error messages #8615

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

hoisie
Copy link
Contributor

@hoisie hoisie commented Nov 14, 2023

Improve the fidelity of legacy SQLite error messages

Previously, in the legacy SQLite mode, all exceptions thrown by SQLite were
wrapped in an arbitrary RuntimeExceptions. This is not consistent with real
Android, which always throws exceptions of type
android.database.sqlite.SQLiteException (including subclasses). This has impact
on data layer libraries such as Room that explicitly catch Android
SQLiteExceptions in order to execute error callback logic.

For #8469

@copybara-service copybara-service bot changed the title Improve fidelity of SQLite error messages Improve the fidelity of legacy SQLite error messages Nov 15, 2023
Previously, in the legacy SQLite mode, all exceptions thrown by SQLite were
wrapped in an arbitrary RuntimeExceptions. This is not consistent with real
Android, which always throws exceptions of type
android.database.sqlite.SQLiteException (including subclasses). This has impact
on data layer libraries such as Room that explicitly catch Android
SQLiteExceptions in order to execute error callback logic.

For #8469

PiperOrigin-RevId: 582557176
@copybara-service copybara-service bot merged commit bfb00f9 into google Nov 15, 2023
@copybara-service copybara-service bot deleted the piper_582331582 branch November 15, 2023 07:36
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

Successfully merging this pull request may close these issues.

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/robolectric/robolectric/pull/8615

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy