summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNathan Harold <nharold@google.com>2018-04-03 16:13:19 -0700
committerNathan Harold <nharold@google.com>2018-04-24 19:04:08 -0700
commitddeb90aa9db108d4a2e5aadc778a726b65e5c921 (patch)
treea766db9c92ea1a35a344ed0633f43d8f2408bf8e /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc17a171a7b2b1ec99e4bd32ec8181b74ef2d2027 (diff)
Rework Exception Handling for IpSecManager
In order to properly support EOPNOTSUPP this CL applies a consistent approach to handling Exceptions. Hereafter, all exceptions that aren't of a special method-specific type (such as SpiUnavailableException) will all be returned to the calling process unchanged. At the API call site, the ServiceSpecificException, which is really an Errno, will be inspected and either converted to an unchecked exception for types we know, or it will be converted to an IOException in cases where that method can return a checked exception. In cases where we do not expect an errno, we will simply throw a generic RuntimeException. This means all API calls will now properly throw UnsupportedOperationException and may be CTS tested accordingly. Bug: 72420898 Test: runtest frameworks-net Change-Id: I4a00e221618896223fcdb4b4279fb14cd14e34d8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions