public class CancelEncoderException extends io.netty.handler.codec.EncoderException implements CancelCodecException
EncoderException
to prevent netty from wrapping the exception.Modifier and Type | Field and Description |
---|---|
static CancelEncoderException |
CACHED |
Constructor and Description |
---|
CancelEncoderException() |
CancelEncoderException(java.lang.String message) |
CancelEncoderException(java.lang.String message,
java.lang.Throwable cause) |
CancelEncoderException(java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static CancelEncoderException |
generate(java.lang.Throwable cause)
Returns a cached CancelEncoderException or a new instance when
ViaManager.isDebug() is true. |
public static final CancelEncoderException CACHED
public CancelEncoderException()
public CancelEncoderException(java.lang.String message, java.lang.Throwable cause)
public CancelEncoderException(java.lang.String message)
public CancelEncoderException(java.lang.Throwable cause)
public static CancelEncoderException generate(java.lang.Throwable cause)
ViaManager.isDebug()
is true.cause
- cause for being used when a new instance is creeated