类 ResultErrorWebExceptionHandler
- java.lang.Object
-
- org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler
-
- org.springframework.boot.autoconfigure.web.reactive.error.DefaultErrorWebExceptionHandler
-
- ai.yue.library.webflux.config.exception.ResultErrorWebExceptionHandler
-
- 所有已实现的接口:
org.springframework.beans.factory.InitializingBean,org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler,org.springframework.web.server.WebExceptionHandler
public class ResultErrorWebExceptionHandler extends org.springframework.boot.autoconfigure.web.reactive.error.DefaultErrorWebExceptionHandlerWeb异常处理器可对WebFilter异常进行统一处理
- 从以下版本开始:
- 2020年9月16日
- 作者:
- ylyue
-
-
构造器概要
构造器 构造器 说明 ResultErrorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.ResourceProperties resourceProperties, org.springframework.boot.autoconfigure.web.ErrorProperties errorProperties, org.springframework.context.ApplicationContext applicationContext)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected org.springframework.web.reactive.function.server.RouterFunction<org.springframework.web.reactive.function.server.ServerResponse>getRoutingFunction(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes)protected reactor.core.publisher.Mono<org.springframework.web.reactive.function.server.ServerResponse>renderErrorResponse(org.springframework.web.reactive.function.server.ServerRequest request)-
从类继承的方法 org.springframework.boot.autoconfigure.web.reactive.error.DefaultErrorWebExceptionHandler
acceptsTextHtml, getErrorAttributeOptions, getHttpStatus, isIncludeBindingErrors, isIncludeMessage, isIncludeStackTrace, renderErrorView
-
从类继承的方法 org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler
afterPropertiesSet, getError, getErrorAttributes, getErrorAttributes, handle, isBindingErrorsEnabled, isMessageEnabled, isTraceEnabled, logError, renderDefaultErrorView, renderErrorView, setMessageReaders, setMessageWriters, setViewResolvers
-
-
-
-
构造器详细资料
-
ResultErrorWebExceptionHandler
public ResultErrorWebExceptionHandler(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes, org.springframework.boot.autoconfigure.web.ResourceProperties resourceProperties, org.springframework.boot.autoconfigure.web.ErrorProperties errorProperties, org.springframework.context.ApplicationContext applicationContext)
-
-
方法详细资料
-
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)
- 覆盖:
getRoutingFunction在类中org.springframework.boot.autoconfigure.web.reactive.error.DefaultErrorWebExceptionHandler
-
renderErrorResponse
protected reactor.core.publisher.Mono<org.springframework.web.reactive.function.server.ServerResponse> renderErrorResponse(org.springframework.web.reactive.function.server.ServerRequest request)
- 覆盖:
renderErrorResponse在类中org.springframework.boot.autoconfigure.web.reactive.error.DefaultErrorWebExceptionHandler
-
-