Change CancelException message

This commit is contained in:
KennyTV 2020-06-09 20:05:35 +02:00
parent 2f9c66eafb
commit d14a74f29e
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;