mirror of
https://github.com/samsonjs/media.git
synced 2026-04-02 10:45:51 +00:00
Don't wrap FileDataSourceException in FileDataSourceException.
Instead just forward the existing exception. PiperOrigin-RevId: 373145328
This commit is contained in:
parent
0c19506d7d
commit
74b126dfc4
1 changed files with 2 additions and 0 deletions
|
|
@ -92,6 +92,8 @@ public final class FileDataSource extends BaseDataSource {
|
|||
if (bytesRemaining < 0) {
|
||||
throw new DataSourceException(DataSourceException.POSITION_OUT_OF_RANGE);
|
||||
}
|
||||
} catch (FileDataSourceException e) {
|
||||
throw e;
|
||||
} catch (IOException e) {
|
||||
throw new FileDataSourceException(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue