Interface ExceptionTranslation


public interface ExceptionTranslation
The implementation of this interface is generally used to handle exceptions occuring prior to the ExceptionHandler selection in spring-web lifecycle. see https://github.com/spring-projects/spring-framework/issues/22991
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Object>>
    handleAnyException(Throwable ex, org.springframework.web.server.ServerWebExchange request)
    Method to translate an Exception to ProblemDetail.
  • Method Details

    • handleAnyException

      reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<Object>> handleAnyException(Throwable ex, org.springframework.web.server.ServerWebExchange request)
      Method to translate an Exception to ProblemDetail.
      Parameters:
      ex - The exception that needs to be handled
      request - The request that is being served
      Returns:
      Returns the Responseentity containing the ProblemDetail