クラス HttpHandlerConnector.FailureAfterResponseCompletedException

java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
java.lang.RuntimeExceptionSE
org.springframework.test.web.reactive.server.HttpHandlerConnector.FailureAfterResponseCompletedException
実装されたすべてのインターフェース:
SerializableSE
含まれているクラス:
HttpHandlerConnector

public static final class HttpHandlerConnector.FailureAfterResponseCompletedException extends RuntimeExceptionSE
サーバーのレスポンスが完了した後、ReactiveHttpOutputMessage.writeWith(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>) または ReactiveHttpOutputMessage.setComplete() を介してエラーが発生し、変更できなくなったことを示します。この例外はエラーをラップし、レスポンスに access も提供します。

実際に実行されているサーバーで何が起こるかは、サーバーがいつレスポンスをコミットするかによって異なり、エラーによってレスポンスが変わる場合と変わらない場合があります。サーバーを使用しないテストでは、例外がラップされて伝播が許可されるため、アプリケーションに警告が表示されます。

導入:
5.2.2
関連事項:
  • メソッドの詳細