类 QueryTimeoutException
- 所有已实现的接口:
Serializable
public class QueryTimeoutException extends TransientDataAccessException
Exception to be thrown on a query timeout. This could have different causes depending on the database API in use but most likely thrown after the database interrupts or stops the processing of a query before it has completed.This exception can be thrown by user code trapping the native database exception or by exception translation.
- 从以下版本开始:
- 3.1
- 作者:
- Thomas Risberg
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 QueryTimeoutException(String msg)Constructor for QueryTimeoutException.QueryTimeoutException(String msg, Throwable cause)Constructor for QueryTimeoutException.
方法概要
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
QueryTimeoutException
public QueryTimeoutException(String msg)
Constructor for QueryTimeoutException.- 参数:
msg- the detail message
QueryTimeoutException
public QueryTimeoutException(String msg, Throwable cause)
Constructor for QueryTimeoutException.- 参数:
msg- the detail messagecause- the root cause from the data access API in use