Class ReactiveWebExceptionHandler

java.lang.Object
tech.jhipster.web.rest.errors.ReactiveWebExceptionHandler
All Implemented Interfaces:
org.springframework.web.server.WebExceptionHandler

public class ReactiveWebExceptionHandler extends Object implements org.springframework.web.server.WebExceptionHandler
ResponseStatusException handler for springwebflux(reactive) application that will facilitate the translation to ProblemDetail
  • Constructor Details

    • ReactiveWebExceptionHandler

      public ReactiveWebExceptionHandler(ExceptionTranslation translator, com.fasterxml.jackson.databind.ObjectMapper mapper)
  • Method Details

    • handle

      public reactor.core.publisher.Mono<Void> handle(org.springframework.web.server.ServerWebExchange exchange, Throwable throwable)
      Handle the given exception. A completion signal through the return value indicates error handling is complete while an error signal indicates the exception is still not handled.
      Specified by:
      handle in interface org.springframework.web.server.WebExceptionHandler
      Parameters:
      exchange - the current exchange
      throwable - the exception to handle
      Returns:
      Mono<Void> to indicate when exception handling is complete