Package com.vaadin.flow.server
Class RequestBodyTooLargeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.vaadin.flow.server.RequestBodyTooLargeException
- All Implemented Interfaces:
Serializable
Thrown when a client-to-server UIDL/RPC or push request body exceeds the
configured maximum size while it is being read.
Extends IOException so that it propagates through the existing
request-handling signatures. Request handlers translate this into an HTTP 413
(Request Entity Too Large) response, or, for push messages, into a refresh
and disconnect.
-
Constructor Summary
ConstructorsConstructorDescriptionRequestBodyTooLargeException(long maxBodySize) Creates a new exception for a request body that exceeded the given maximum size. -
Method Summary
Modifier and TypeMethodDescriptionlongGets the configured maximum request body size, in characters, that was exceeded.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RequestBodyTooLargeException
public RequestBodyTooLargeException(long maxBodySize) Creates a new exception for a request body that exceeded the given maximum size.- Parameters:
maxBodySize- the configured maximum request body size, in characters
-
-
Method Details
-
getMaxBodySize
public long getMaxBodySize()Gets the configured maximum request body size, in characters, that was exceeded.- Returns:
- the maximum request body size in characters
-