spring-framework / org.springframework.web.context.request.async / WebAsyncTask / onError

onError

open fun onError(callback: Callable<V>): 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 before the Callable has completed. The callback is executed in the same thread and therefore should return without blocking. It may return an alternative value to use, including an Exception or return RESULT_NONE.

Since
5.0