类 WebFluxResponseStatusExceptionHandler
- java.lang.Object
- org.springframework.web.server.handler.ResponseStatusExceptionHandler
- org.springframework.web.reactive.handler.WebFluxResponseStatusExceptionHandler
- 所有已实现的接口:
WebExceptionHandler
public class WebFluxResponseStatusExceptionHandler extends ResponseStatusExceptionHandler
Common WebFlux exception handler that detects instances ofResponseStatusException
(inherited from the base class) as well as exceptions annotated with@ResponseStatus
by determining the HTTP status for them and updating the status of the response accordingly.If the response is already committed, the error remains unresolved and is propagated.
- 从以下版本开始:
- 5.0.5
- 作者:
- Juergen Hoeller, Rossen Stoyanchev
构造器概要
构造器 构造器 说明 WebFluxResponseStatusExceptionHandler()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected HttpStatus
determineStatus(Throwable ex)
Determine the HTTP status implied by the given exception.从类继承的方法 org.springframework.web.server.handler.ResponseStatusExceptionHandler
handle, setWarnLogCategory
构造器详细资料
WebFluxResponseStatusExceptionHandler
public WebFluxResponseStatusExceptionHandler()
方法详细资料
determineStatus
@Nullable protected HttpStatus determineStatus(Throwable ex)
从类复制的说明:ResponseStatusExceptionHandler
Determine the HTTP status implied by the given exception.- 覆盖:
determineStatus
在类中ResponseStatusExceptionHandler
- 参数:
ex
- the exception to introspect- 返回:
- the associated HTTP status, if any