Class HttpHandlerConnector.FailureAfterResponseCompletedException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.test.web.reactive.server.HttpHandlerConnector.FailureAfterResponseCompletedException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- HttpHandlerConnector
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.
- Since:
- 5.2.2
- See Also:
- Serialized Form
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientHttpResponse
getCompletedResponse()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Method Detail
getCompletedResponse
public ClientHttpResponse getCompletedResponse()