summaryrefslogtreecommitdiff
path: root/libs/androidfw/ResourceTimer.cpp
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2024-12-06 13:18:37 -0800
committer Lee Shombert <shombert@google.com> 2024-12-07 12:10:31 -0800
commit4cc641f58e77b38f0b628cbc973f56b8e99ce800 (patch)
tree201ff706823cff4bc6884aed29ecdd297d6043ad /libs/androidfw/ResourceTimer.cpp
parent9176f4a731df973ec1a276d04d0bfe8800d189e4 (diff)
Fine-tune sqlite misuse exceptions
The baseline code throws a "column-out-of-bounds" exception for some APIs, where the bounds are determined by the sqlite statement. However, this exception is misleading if the real problem is that the statement is not properly prepared. The code change executes the desired sqlite api and throws an error if one is detected. If no error is detected but the column is out of bounds, the column-out-of-bounds exception is thrown. Note that this change does not throw an exception when one would not have been thrown before. It only changes the exception that is thrown. Flag: EXEMPT bug-fix Bug: 359676342 Test: atest * FrameworksCoreTests:android.database * CtsDatabaseTestCases Change-Id: Ic85982aeff680b19dedd14460cb26ba5b5ce18ed
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions