From d14a74f29ee51a9bc1cd89569cae47f6e1cab321 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Tue, 9 Jun 2020 20:05:35 +0200 Subject: [PATCH] Change CancelException message --- .../us/myles/ViaVersion/exception/CancelDecoderException.java | 2 +- .../us/myles/ViaVersion/exception/CancelEncoderException.java | 2 +- .../java/us/myles/ViaVersion/exception/CancelException.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/exception/CancelDecoderException.java b/common/src/main/java/us/myles/ViaVersion/exception/CancelDecoderException.java index 27da128ce..11b5522ab 100644 --- a/common/src/main/java/us/myles/ViaVersion/exception/CancelDecoderException.java +++ b/common/src/main/java/us/myles/ViaVersion/exception/CancelDecoderException.java @@ -8,7 +8,7 @@ import us.myles.ViaVersion.api.Via; * Specifically extends {@link DecoderException} to prevent netty from wrapping the exception. */ public class CancelDecoderException extends DecoderException { - public static final CancelDecoderException CACHED = new CancelDecoderException("CACHED") { + public static final CancelDecoderException CACHED = new CancelDecoderException("This packet is supposed to be cancelled; If you have debug enabled, you can ignore these") { @Override public Throwable fillInStackTrace() { return this; diff --git a/common/src/main/java/us/myles/ViaVersion/exception/CancelEncoderException.java b/common/src/main/java/us/myles/ViaVersion/exception/CancelEncoderException.java index 564773b15..9e548084b 100644 --- a/common/src/main/java/us/myles/ViaVersion/exception/CancelEncoderException.java +++ b/common/src/main/java/us/myles/ViaVersion/exception/CancelEncoderException.java @@ -8,7 +8,7 @@ import us.myles.ViaVersion.api.Via; * Specifically extends {@link EncoderException} to prevent netty from wrapping the exception. */ public class CancelEncoderException extends EncoderException { - public static final CancelEncoderException CACHED = new CancelEncoderException("CACHED") { + public static final CancelEncoderException CACHED = new CancelEncoderException("This packet is supposed to be cancelled; If you have debug enabled, you can ignore these") { @Override public Throwable fillInStackTrace() { return this; diff --git a/common/src/main/java/us/myles/ViaVersion/exception/CancelException.java b/common/src/main/java/us/myles/ViaVersion/exception/CancelException.java index d07b5a1ad..b00bcc298 100644 --- a/common/src/main/java/us/myles/ViaVersion/exception/CancelException.java +++ b/common/src/main/java/us/myles/ViaVersion/exception/CancelException.java @@ -8,7 +8,7 @@ import us.myles.ViaVersion.api.Via; * Internally catched to then throw the appropriate {@link CodecException} for Netty's handler. */ public class CancelException extends Exception { - public static final CancelException CACHED = new CancelException("Cached - Enable /viaver debug to not use cached exception") { + public static final CancelException CACHED = new CancelException("This packet is supposed to be cancelled; If you have debug enabled, you can ignore these") { @Override public Throwable fillInStackTrace() { return this;