Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 00:22:51 +01:00
Print out stack traces instead of throwing them move.
Dieser Commit ist enthalten in:
Ursprung
fc00dd2b38
Commit
3e30d989a0
@ -51,8 +51,9 @@ public class ViaDecodeHandler extends ByteToMessageDecoder {
|
|||||||
&& !(cause.getCause() instanceof ClosedChannelException)) {
|
&& !(cause.getCause() instanceof ClosedChannelException)) {
|
||||||
if (!(cause instanceof CancelException)
|
if (!(cause instanceof CancelException)
|
||||||
&& !(cause instanceof ClosedChannelException)) {
|
&& !(cause instanceof ClosedChannelException)) {
|
||||||
if (cause instanceof Exception)
|
if (cause instanceof Exception){
|
||||||
throw (Exception) cause;
|
cause.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -79,7 +79,7 @@ public class ViaEncodeHandler extends MessageToByteEncoder {
|
|||||||
if (!(cause instanceof CancelException)
|
if (!(cause instanceof CancelException)
|
||||||
&& !(cause instanceof ClosedChannelException)) {
|
&& !(cause instanceof ClosedChannelException)) {
|
||||||
if (cause instanceof Exception)
|
if (cause instanceof Exception)
|
||||||
throw (Exception) cause;
|
cause.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren