类 HttpHandlerConnector.FailureAfterResponseCompletedException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.test.web.reactive.server.HttpHandlerConnector.FailureAfterResponseCompletedException
- 所有已实现的接口:
Serializable
public static final class HttpHandlerConnector.FailureAfterResponseCompletedException extends RuntimeException
Indicates that an error occurred after the server response was completed, viaReactiveHttpOutputMessage.writeWith(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>)
orReactiveHttpOutputMessage.setComplete()
, and can no longer be changed. This exception wraps the error and also providesaccess
to the response.What happens on an actual running server depends on when the server commits the response and the error may or may not change the response. Therefore in tests without a server the exception is wrapped and allowed to propagate so the application is alerted.
- 从以下版本开始:
- 5.2.2
- 另请参阅:
- 序列化表格
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ClientHttpResponse
getCompletedResponse()
方法详细资料
getCompletedResponse
public ClientHttpResponse getCompletedResponse()