Package io.micronaut.http.exceptions
Class BufferLengthExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.http.exceptions.HttpException
io.micronaut.http.exceptions.BufferLengthExceededException
- All Implemented Interfaces:
Serializable
Exception thrown when attempting to buffer more than the configured limit.
- Since:
- 4.5.0
- Author:
- Jonas Konrad
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
The maximum permitted length.long
The actual received length.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BufferLengthExceededException
public BufferLengthExceededException(long advertisedLength, long receivedLength) - Parameters:
advertisedLength
- The advertised lengthreceivedLength
- The received length
-
-
Method Details
-
getAdvertisedLength
public long getAdvertisedLength()The maximum permitted length.- Returns:
- The maximum permitted length
-
getReceivedLength
public long getReceivedLength()The actual received length.- Returns:
- The actual received length
-