diff options
author | Alex Naidis <alex.naidis@linux.com> | 2017-01-04 18:52:36 +0100 |
---|---|---|
committer | Alex Naidis <alex.naidis@linux.com> | 2017-01-09 16:27:52 +0000 |
commit | 19d9c2d03c478c755eddbe7ac55d0dc778f332fd (patch) | |
tree | 848487c77e443729c207f49c07db7e2bd4479234 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | f6f36d7d9a12fa6affd22bdadcb70ba940ac3812 (diff) |
StorageManager: Improve exception handling
When "getPrimaryStorageSize" provides a path
to "readLong", the option that the path
doesn't exist is expected, since it tries
all paths from "INTERNAL_STORAGE_SIZE_PATHS"
until there is success.
This patch makes us catch the "FileNotFoundException"
and "NumberFormatException" seperately.
For the above reason a "FileNotFoundException"
is now treated as an information only.
The "NumberFormatException" and other exceptions
are now treated as error since those are not
expected to happen.
Change-Id: I5316f9c3108e36c31b27dc5df8bf8ac4d4257629
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions