public class GlobalErrorHandler
extends org.springframework.boot.autoconfigure.web.reactive.error.DefaultErrorWebExceptionHandler
| 构造器和说明 |
|---|
GlobalErrorHandler(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)
Instantiates a new Global error handler.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Map<String,Object> |
getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request,
boolean includeStackTrace) |
protected org.springframework.http.HttpStatus |
getHttpStatus(Map<String,Object> errorAttributes) |
protected org.springframework.web.reactive.function.server.RouterFunction<org.springframework.web.reactive.function.server.ServerResponse> |
getRoutingFunction(org.springframework.boot.web.reactive.error.ErrorAttributes errorAttributes) |
acceptsTextHtml, isIncludeStackTrace, logError, renderErrorResponse, renderErrorViewpublic GlobalErrorHandler(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)
errorAttributes - the error attributesresourceProperties - the resource propertieserrorProperties - the error propertiesapplicationContext - the application contextprotected Map<String,Object> getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request, boolean includeStackTrace)
getErrorAttributes 在类中 org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandlerprotected 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.DefaultErrorWebExceptionHandlerCopyright © 2019 dromara. All rights reserved.