summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Jackal Guo <jackalguo@google.com> 2023-02-18 11:41:13 +0800
committer Jackal Guo <jackalguo@google.com> 2023-02-22 09:03:46 +0800
commitd5f77656e88d190883137fd03073fe4dba353f5e (patch)
tree39f8dba4519c1c650c65860e43f0531bb6915f73 /libs/androidfw/ObbFile.cpp
parente835a95134ffaeb2e2bd4b018b2d2f8fc7908825 (diff)
Have more meaningful error message
When building a PreapprovalDetails oblject, throwing IllegalArgument- Exception with a message explaining what was missing instead of a NullPointerException without any message. Due to the limitation, manually construct the Builder and related methods instead of using codegen. Fix: 269731101 Test: atest CtsContentTestCases:PreapprovalDetailsTest Test: atest CtsPackageInstallTestCases:PreapprovalInstallTest Test: manually building a PreapprovalDetails object with supplying all required details, and check if the message tells me what is going on. Change-Id: I0cd641d90ab45830ab6740e94357e4280fac2d4c
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions