Class TestResourcesExceptionHandler

java.lang.Object
io.micronaut.testresources.server.TestResourcesExceptionHandler
All Implemented Interfaces:
io.micronaut.http.server.exceptions.ExceptionHandler<Throwable, io.micronaut.http.HttpResponse<?>>

@Singleton public class TestResourcesExceptionHandler extends Object implements io.micronaut.http.server.exceptions.ExceptionHandler<Throwable, io.micronaut.http.HttpResponse<?>>
Encodes transport errors with the binary media type so the client does not need a JSON fallback.
  • Constructor Details

    • TestResourcesExceptionHandler

      public TestResourcesExceptionHandler()
  • Method Details

    • handle

      public io.micronaut.http.HttpResponse<?> handle(io.micronaut.http.HttpRequest request, Throwable exception)
      Specified by:
      handle in interface io.micronaut.http.server.exceptions.ExceptionHandler<Throwable, io.micronaut.http.HttpResponse<?>>