Skip to content
Commit d5f77656 authored by Jackal Guo's avatar Jackal Guo
Browse files

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
parent e835a951
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment