Commit 74b126df by tonihei Committed by kim-vde

Don't wrap FileDataSourceException in FileDataSourceException.

Instead just forward the existing exception.

PiperOrigin-RevId: 373145328
parent 0c19506d
...@@ -92,6 +92,8 @@ public final class FileDataSource extends BaseDataSource { ...@@ -92,6 +92,8 @@ public final class FileDataSource extends BaseDataSource {
if (bytesRemaining < 0) { if (bytesRemaining < 0) {
throw new DataSourceException(DataSourceException.POSITION_OUT_OF_RANGE); throw new DataSourceException(DataSourceException.POSITION_OUT_OF_RANGE);
} }
} catch (FileDataSourceException e) {
throw e;
} catch (IOException e) { } catch (IOException e) {
throw new FileDataSourceException(e); throw new FileDataSourceException(e);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment