Package io.servicetalk.encoding.api
Class CodecDecodingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.servicetalk.encoding.api.CodecDecodingException
-
- All Implemented Interfaces:
java.io.Serializable
public final class CodecDecodingException extends java.lang.RuntimeException
Exception thrown when something goes wrong during decoding.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CodecDecodingException(ContentCodec codec, java.lang.String message)
New instance.CodecDecodingException(ContentCodec codec, java.lang.String message, java.lang.Throwable cause)
New instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentCodec
codec()
Returns the codec in use when this exception occurred.
-
-
-
Constructor Detail
-
CodecDecodingException
public CodecDecodingException(ContentCodec codec, java.lang.String message)
New instance.- Parameters:
codec
- the codec in use.message
- the reason of this exception.
-
CodecDecodingException
public CodecDecodingException(ContentCodec codec, java.lang.String message, java.lang.Throwable cause)
New instance.- Parameters:
codec
- the codec in use.message
- the reason of this exception.cause
- the cause of the exception.
-
-
Method Detail
-
codec
public ContentCodec codec()
Returns the codec in use when this exception occurred.- Returns:
- the codec in use when this exception occurred.
-
-