Class ObservationClosingWebExceptionHandler

java.lang.Object
org.springframework.cloud.gateway.filter.headers.observation.ObservationClosingWebExceptionHandler
All Implemented Interfaces:
org.springframework.web.server.WebExceptionHandler

public class ObservationClosingWebExceptionHandler extends Object implements org.springframework.web.server.WebExceptionHandler
A WebExceptionHandler that will stop an Observation if an exception was thrown and there is no response to set on the context.
Since:
4.0.0
Author:
Marcin Grzejszczak
  • Constructor Details

    • ObservationClosingWebExceptionHandler

      public ObservationClosingWebExceptionHandler()
  • Method Details

    • handle

      public reactor.core.publisher.Mono<Void> handle(org.springframework.web.server.ServerWebExchange exchange, Throwable ex)
      Specified by:
      handle in interface org.springframework.web.server.WebExceptionHandler