类 AsyncRequestTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.web.context.async.AsyncRequestTimeoutException
- 所有已实现的接口:
HttpStatusCodeProvider,ErrorResponse,Serializable
Exception to be thrown when an async request times out.
Alternatively an applications can register a
DeferredResultProcessingInterceptor or a
CallableProcessingInterceptor to handle the timeout through
the MVC Java config or the MVC XML namespace or directly through properties
of the RequestMappingHandlerAdapter.
By default the exception will be handled as a 503 error.
- 从以下版本开始:
- 4.0 2022/3/2 18:10
- 作者:
- Rossen Stoyanchev, Harry Yang
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getBody()Return the body for the response, formatted as an RFC 7807ProblemDetailwhosestatusshould match the response status.Return the HTTP status code to use for the response.从类继承的方法 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.taketoday.web.ErrorResponse
getHeaders
-
构造器详细资料
-
AsyncRequestTimeoutException
public AsyncRequestTimeoutException()
-
-
方法详细资料
-
getStatusCode
从接口复制的说明:ErrorResponseReturn the HTTP status code to use for the response.- 指定者:
getStatusCode在接口中ErrorResponse- 指定者:
getStatusCode在接口中HttpStatusCodeProvider
-
getBody
从接口复制的说明:ErrorResponseReturn the body for the response, formatted as an RFC 7807ProblemDetailwhosestatusshould match the response status.- 指定者:
getBody在接口中ErrorResponse
-