Class BufferLengthExceededHandler
java.lang.Object
io.micronaut.http.server.exceptions.BufferLengthExceededHandler
- All Implemented Interfaces:
ExceptionHandler<BufferLengthExceededException,
HttpResponse>
@Singleton
@Produces
public class BufferLengthExceededHandler
extends Object
implements ExceptionHandler<BufferLengthExceededException,HttpResponse>
Default handler for
BufferLengthExceededHandler
errors.- Since:
- 4.5.0
- Author:
- Jonas Konrad
-
Constructor Summary
ConstructorDescriptionBufferLengthExceededHandler
(ErrorResponseProcessor<?> responseProcessor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionhandle
(HttpRequest request, BufferLengthExceededException exception) Handles an exception and returns the result.
-
Constructor Details
-
BufferLengthExceededHandler
Constructor.- Parameters:
responseProcessor
- Error Response Processor
-
-
Method Details
-
handle
Description copied from interface:ExceptionHandler
Handles an exception and returns the result.- Specified by:
handle
in interfaceExceptionHandler<BufferLengthExceededException,
HttpResponse> - Parameters:
request
- The requestexception
- The exception type- Returns:
- The result
-