summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorNathan Harold <nharold@google.com>2018-04-03 16:13:19 -0700
committerNathan Harold <nharold@google.com>2018-06-07 18:42:52 -0700
commit144ce0a2485b061b4ae9090b2b9f558e6e3d0e04 (patch)
tree62f03d461907508f347fe00c56e5dc4abd5afa2c /tools/aapt2/java/JavaClassGenerator.cpp
parentfdda5697d7ccc61b5692a8b2e5116afcb4921c09 (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 Merged-In: I4a00e221618896223fcdb4b4279fb14cd14e34d8 Change-Id: I4a00e221618896223fcdb4b4279fb14cd14e34d8 (cherry picked from commit ddeb90aa9db108d4a2e5aadc778a726b65e5c921)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions