Class ContentLengthExceededHandler

java.lang.Object
io.micronaut.http.server.exceptions.ContentLengthExceededHandler
All Implemented Interfaces:
ExceptionHandler<io.micronaut.http.exceptions.ContentLengthExceededException,io.micronaut.http.HttpResponse>

@Singleton @Produces public class ContentLengthExceededHandler extends Object implements ExceptionHandler<io.micronaut.http.exceptions.ContentLengthExceededException,io.micronaut.http.HttpResponse>
Default handle for ContentLengthExceededException errors.
Since:
1.0
  • Constructor Details

    • ContentLengthExceededHandler

      @Inject public ContentLengthExceededHandler(ErrorResponseProcessor<?> responseProcessor)
      Constructor.
      Parameters:
      responseProcessor - Error Response Processor
  • Method Details

    • handle

      public io.micronaut.http.HttpResponse handle(io.micronaut.http.HttpRequest request, io.micronaut.http.exceptions.ContentLengthExceededException exception)
      Description copied from interface: ExceptionHandler
      Handles an exception and returns the result.
      Specified by:
      handle in interface ExceptionHandler<io.micronaut.http.exceptions.ContentLengthExceededException,io.micronaut.http.HttpResponse>
      Parameters:
      request - The request
      exception - The exception type
      Returns:
      The result