Package com.vaadin.server
Class RequestBodyTooLargeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.vaadin.server.RequestBodyTooLargeException
-
- All Implemented Interfaces:
Serializable
public class RequestBodyTooLargeException extends IOException
Thrown when a client-to-server UIDL/RPC or push request body exceeds the configured maximum size while it is being read.Extends
IOExceptionso 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
Constructors Constructor Description RequestBodyTooLargeException(long maxBodySize)Creates a new exception for a request body that exceeded the given maximum size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetMaxBodySize()Gets 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
-
-