3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-03 08:41:05 +02:00

Print out stack traces instead of throwing them move.

Dieser Commit ist enthalten in:
Myles 2016-03-02 23:20:57 +00:00
Ursprung fc00dd2b38
Commit 3e30d989a0
2 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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