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, via ReactiveHttpOutputMessage.writeWith(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>) or ReactiveHttpOutputMessage.setComplete(), and can no longer be changed. This exception wraps the error and also provides access 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: