summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Script.java
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2016-06-08 17:19:09 -0700
committerAdam Lesinski <adamlesinski@google.com>2016-06-08 17:25:35 -0700
commitc82f28a91370a2b01d36e35ca149a3da58b38f60 (patch)
tree97b52c0b1458c1346e4228d3c9dc1979bcc04dac /rs/java/android/renderscript/Script.java
parent00681d0e7845978c9137f9360e371fca64b03420 (diff)
Throw proper exception in ResourcesManager
In M we would bubble up a NameNotFoundException when failing to load an assetmanager from another application. We switched to throwing an IllegalArgumentException, which isn't something anyone should handle. This change has ResourcesManager throw Resources.NotFoundException, which callers like ApplicationPackageManager can catch and rethrow with the appropriate checked exception. This adds more detail to errors than we had in M. Bug:28876344 Change-Id: I250aeef8a4ccfd90c6abef2243edc1c5337ebde9
Diffstat (limited to 'rs/java/android/renderscript/Script.java')
0 files changed, 0 insertions, 0 deletions