spring-framework / org.springframework.web.servlet.mvc.method.annotation / ResponseBodyEmitter / onError

onError

open fun onError(callback: Consumer<Throwable>): Unit

Register code to invoke for an error during async request processing. This method is called from a container thread when an error occurred while processing an async request.

Since
5.0