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:
java.io.Serializable
public class ContentLengthExceededException extends HttpException
Exception thrown when the content length exceeds the allowed amount.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContentLengthExceededException(long advertisedLength, long receivedLength)
ContentLengthExceededException(java.lang.String message)
ContentLengthExceededException(java.lang.String message, java.lang.Throwable cause)
-
-
-
Constructor Detail
-
ContentLengthExceededException
public ContentLengthExceededException(java.lang.String message)
- Parameters:
message
- The message
-
ContentLengthExceededException
public ContentLengthExceededException(java.lang.String message, java.lang.Throwable cause)
- Parameters:
message
- The messagecause
- The throwable
-
ContentLengthExceededException
public ContentLengthExceededException(long advertisedLength, long receivedLength)
- Parameters:
advertisedLength
- The advertised lengthreceivedLength
- The received length
-
-