Class BufferLengthExceededHandler
java.lang.Object
io.micronaut.http.server.exceptions.ErrorResponseProcessorExceptionHandler<BufferLengthExceededException>
io.micronaut.http.server.exceptions.BufferLengthExceededHandler
- All Implemented Interfaces:
ExceptionHandler<BufferLengthExceededException,HttpResponse<?>>
@Singleton
@Produces
public class BufferLengthExceededHandler
extends ErrorResponseProcessorExceptionHandler<BufferLengthExceededException>
Default handler for
BufferLengthExceededException errors.- Since:
- 4.5.0
- Author:
- Jonas Konrad
-
Field Summary
Fields inherited from class io.micronaut.http.server.exceptions.ErrorResponseProcessorExceptionHandler
responseProcessor -
Constructor Summary
ConstructorsConstructorDescriptionBufferLengthExceededHandler(ErrorResponseProcessor<?> responseProcessor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull MutableHttpResponse<?>createResponse(BufferLengthExceededException exception) Methods inherited from class io.micronaut.http.server.exceptions.ErrorResponseProcessorExceptionHandler
handle
-
Constructor Details
-
BufferLengthExceededHandler
Constructor.- Parameters:
responseProcessor- Error Response Processor
-
-
Method Details
-
createResponse
@NonNull protected @NonNull MutableHttpResponse<?> createResponse(BufferLengthExceededException exception) - Specified by:
createResponsein classErrorResponseProcessorExceptionHandler<BufferLengthExceededException>
-