Class ResponseStatusExceptionHandler

    • Method Detail

      • handle

        public reactor.core.publisher.Mono<Voidhandle​(ServerWebExchange exchange,
                                                        Throwable ex)
        Description copied from interface: WebExceptionHandler
        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 WebExceptionHandler
        Parameters:
        exchange - the current exchange
        ex - the exception to handle
        Returns:
        Mono<Void> to indicate when exception handling is complete
      • determineStatus

        @Nullable
        protected HttpStatus determineStatus​(Throwable ex)
        Determine the HTTP status implied by the given exception.
        Parameters:
        ex - the exception to introspect
        Returns:
        the associated HTTP status, if any
        Since:
        5.0.5