类 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 newAbstractErrorWebExceptionHandler. -
方法概要
修饰符和类型方法说明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 aRouterFunctionthat 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
-
构造器详细资料
-
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 newAbstractErrorWebExceptionHandler.- 参数:
errorAttributes- the error attributesresources- the resources configuration propertiesapplicationContext- 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 aRouterFunctionthat can route and handle errors as JSON responses or HTML views.If the returned
RouterFunctiondoesn't route to aHandlerFunction, the original exception is propagated in the pipeline and can be processed by otherWebExceptionHandlers.- 指定者:
getRoutingFunction在类中org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler
-