summaryrefslogtreecommitdiff
path: root/annotations/generate_annotated_java_files.py
diff options
context:
space:
mode:
authorTobias Thierer <tobiast@google.com>2019-08-19 17:50:44 +0100
committerTobias Thierer <tobiast@google.com>2019-08-19 17:50:46 +0100
commit3b4cb251ec0a5c123b417bfe40f96d01a2343a4c (patch)
tree1fd0043a761faa911d226d71bbe4c81cd5652c3c /annotations/generate_annotated_java_files.py
parent08d0b74670b04bb4687ef66f0efc4745d49b8e5b (diff)
MimeMapImpl: Tweak message exception when resource not found.
Class.getResourceAsStream(String) returns null rather than throwing IOException if the resource is not found. This CL tweaks the code such that the RuntimeException that ends up being thrown always specified which resource wasn't found, even when the cause itself was a RuntimeException (such as NPE). Test: Manually changed the code to specify an incorrect resource path, checked that a helpful exception was logged during boot. Bug: 136256059 Change-Id: I4d89f602036bce806eafa925ec09f29a1e683162
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions