Package io.micronaut.http.exceptions
Class ContentLengthExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.http.exceptions.HttpException
io.micronaut.http.exceptions.ContentLengthExceededException
- All Implemented Interfaces:
Serializable
Exception thrown when the content length exceeds the allowed amount.
- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Constructor Summary
ConstructorDescriptionContentLengthExceededException
(long advertisedLength, long receivedLength) ContentLengthExceededException
(String message) ContentLengthExceededException
(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ContentLengthExceededException
- Parameters:
message
- The message
-
ContentLengthExceededException
- Parameters:
message
- The messagecause
- The throwable
-
ContentLengthExceededException
public ContentLengthExceededException(long advertisedLength, long receivedLength) - Parameters:
advertisedLength
- The advertised lengthreceivedLength
- The received length
-