类 ResponseStatusExceptionHandler

    • 方法详细资料

      • handle

        public reactor.core.publisher.Mono<Voidhandle​(ServerWebExchange exchange,
                                                        Throwable ex)
        从接口复制的说明: 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.
        指定者:
        handle 在接口中 WebExceptionHandler
        参数:
        exchange - the current exchange
        ex - the exception to handle
        返回:
        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.
        参数:
        ex - the exception to introspect
        返回:
        the associated HTTP status, if any
        从以下版本开始:
        5.0.5