类 ErrorWebExceptionHandler

java.lang.Object
org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler
cn.bbwres.biscuit.gateway.adapter.ErrorWebExceptionHandler
所有已实现的接口:
org.springframework.beans.factory.InitializingBean, org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler, org.springframework.web.server.WebExceptionHandler

@Order(-2) public class ErrorWebExceptionHandler extends org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler
全局异常处理
版本:
$Id: $Id
作者:
zhanglinfeng
  • 构造器概要

    构造器
    构造器
    说明
    ErrorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.WebProperties.Resources resources, org.springframework.context.ApplicationContext applicationContext)
    Create a new AbstractErrorWebExceptionHandler.
  • 方法概要

    修饰符和类型
    方法
    说明
    protected org.springframework.web.reactive.function.server.RouterFunction<org.springframework.web.reactive.function.server.ServerResponse>
    getRoutingFunction(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes)
    Create a RouterFunction that can route and handle errors as JSON responses or HTML views.

    从类继承的方法 org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler

    afterPropertiesSet, getError, getErrorAttributes, handle, isBindingErrorsEnabled, isMessageEnabled, isPathEnabled, isTraceEnabled, logError, renderDefaultErrorView, renderErrorView, setMessageReaders, setMessageWriters, setViewResolvers

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • ErrorWebExceptionHandler

      public ErrorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.WebProperties.Resources resources, org.springframework.context.ApplicationContext applicationContext)
      Create a new AbstractErrorWebExceptionHandler.
      参数:
      errorAttributes - the error attributes
      resources - the resources configuration properties
      applicationContext - the application context
      从以下版本开始:
      2.4.0
  • 方法详细资料

    • getRoutingFunction

      protected org.springframework.web.reactive.function.server.RouterFunction<org.springframework.web.reactive.function.server.ServerResponse> getRoutingFunction(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes)
      Create a RouterFunction that can route and handle errors as JSON responses or HTML views.

      If the returned RouterFunction doesn't route to a HandlerFunction, the original exception is propagated in the pipeline and can be processed by other WebExceptionHandlers.

      指定者:
      getRoutingFunction 在类中 org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler