Top Description Fields Constructors Methods
org.glassfish.tyrus.core

pack-priv Class MessageTooBigException

extends WebSocketException
Class Inheritance
Imports
jakarta.websocket.CloseReason

Thrown when jakarta.websocket.OnMessage#maxMessageSize() is smaller than received message size.

Underlying web socket connection will be closed with jakarta.websocket.CloseReason.CloseCode jakarta.websocket.CloseReason.CloseCodes#TOO_BIG and jakarta.websocket.OnError annotated method (or jakarta.websocket.Endpoint#onError(jakarta.websocket.Session, Throwable) will be called with instance of this class as Throwable parameter.

Author
Pavel Bucek

Field Summary

Modifier and TypeField and Description
private static final CloseReason
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public CloseReason

Field Detail

CLOSE_REASONback to summary
private static final CloseReason CLOSE_REASON
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

MessageTooBigExceptionback to summary
pack-priv MessageTooBigException(String message)

Method Detail

getCloseReasonback to summary
public CloseReason getCloseReason()

Implements abstract org.glassfish.tyrus.core.WebSocketException.getCloseReason.

Doc from org.glassfish.tyrus.core.WebSocketException.getCloseReason.

Get close reason.

Returns:CloseReason

close reason used when processing this exception.

Annotations
@Override