Print out stack traces instead of throwing them move.

This commit is contained in:
Myles 2016-03-02 23:20:57 +00:00
parent fc00dd2b38
commit 3e30d989a0
2 changed files with 4 additions and 3 deletions

View File

@ -51,8 +51,9 @@ public class ViaDecodeHandler extends ByteToMessageDecoder {
&& !(cause.getCause() instanceof ClosedChannelException)) {
if (!(cause instanceof CancelException)
&& !(cause instanceof ClosedChannelException)) {
if (cause instanceof Exception)
throw (Exception) cause;
if (cause instanceof Exception){
cause.printStackTrace();
}
}
}
}

View File

@ -79,7 +79,7 @@ public class ViaEncodeHandler extends MessageToByteEncoder {
if (!(cause instanceof CancelException)
&& !(cause instanceof ClosedChannelException)) {
if (cause instanceof Exception)
throw (Exception) cause;
cause.printStackTrace();
}
}
}