Commit 38f1d41e authored by R.W.Majeed's avatar R.W.Majeed

throw IOException instead of RuntimeException on version mismatch

parent a4c59aad
......@@ -33,7 +33,7 @@ public class DecryptingInputStream implements ReadableByteChannel {
int version = buffer.getInt();
int ks = buffer.getShort();
if( version != EncryptingOutputStream.Version )throw new RuntimeException("Unsupported MDAT stream version "+version);
if( version != EncryptingOutputStream.Version )throw new IOException("Unsupported MDAT stream version "+version);
byte[] wrapped = new byte[ks];
buffer.get(wrapped);
buffer.compact();
......
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 to comment