Don't wrap FileDataSourceException in FileDataSourceException.

Instead just forward the existing exception.

PiperOrigin-RevId: 373145328
This commit is contained in:
tonihei 2021-05-11 15:22:23 +01:00 committed by kim-vde
parent 0c19506d7d
commit 74b126dfc4

View File

@ -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);
}