mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
java: wrap decoder IllegalStateException as IOException
This commit is contained in:
@@ -169,7 +169,7 @@ public class BrotliInputStream extends InputStream {
|
||||
copyLen += state.outputUsed;
|
||||
copyLen = (copyLen > 0) ? copyLen : END_OF_STREAM_MARKER;
|
||||
return copyLen;
|
||||
} catch (BrotliRuntimeException ex) {
|
||||
} catch (BrotliRuntimeException | IllegalStateException ex) {
|
||||
throw new IOException("Brotli stream decoding failed", ex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user