Package io.servicetalk.grpc.api
Class MessageEncodingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.servicetalk.grpc.api.MessageEncodingException
-
- All Implemented Interfaces:
java.io.Serializable
public final class MessageEncodingException extends java.lang.RuntimeExceptionException thrown when a message was encoded with an unsupported encoder.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageEncodingException(java.lang.String encoding)New instance.MessageEncodingException(java.lang.String encoding, java.lang.Throwable cause)New instance.MessageEncodingException(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace, java.lang.String encoding)New instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringencoding()The name of the encoding used when the Exception was thrown.
-
-
-
Constructor Detail
-
MessageEncodingException
public MessageEncodingException(java.lang.String encoding)
New instance.- Parameters:
encoding- the name of the encoding used
-
MessageEncodingException
public MessageEncodingException(java.lang.String encoding, java.lang.Throwable cause)New instance.- Parameters:
cause- for this exception.encoding- the name of the encoding used
-
MessageEncodingException
public MessageEncodingException(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace, java.lang.String encoding)New instance.- Parameters:
message- for the exception.cause- for this exception.enableSuppression- whether or not suppression is enabled or disabled.writableStackTrace- whether or not the stack trace should be writable.encoding- the name of the encoding used
-
-