Package io.servicetalk.serializer.api
Class MaxMessageSizeExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.servicetalk.serializer.api.SerializationException
io.servicetalk.serializer.api.MaxMessageSizeExceededException
- All Implemented Interfaces:
Serializable
A
SerializationException indicating that a message exceeded the maximum size allowed for
(de)serialization. It is distinct from other SerializationExceptions so that transports can map it to a
transport-specific "too large" status (e.g. HTTP 413 Payload Too Large) rather than a generic
(de)serialization failure.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMaxMessageSizeExceededException(String message) New instance.MaxMessageSizeExceededException(String message, Throwable cause) New instance. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MaxMessageSizeExceededException
New instance.- Parameters:
message- for the exception.
-
MaxMessageSizeExceededException
New instance.- Parameters:
message- for the exception.cause- for this exception.
-