Package io.servicetalk.encoding.api
Class CodecEncodingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.servicetalk.encoding.api.CodecEncodingException
-
- All Implemented Interfaces:
java.io.Serializable
public final class CodecEncodingException extends java.lang.RuntimeException
Exception thrown when something goes wrong during encoding.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CodecEncodingException(ContentCodec codec, java.lang.String message)
New instance.CodecEncodingException(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
-
CodecEncodingException
public CodecEncodingException(ContentCodec codec, java.lang.String message)
New instance.- Parameters:
codec
- the codec in use.message
- the reason of this exception.
-
CodecEncodingException
public CodecEncodingException(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.
-
-