类 InvalidDataAccessApiUsageException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.dao.DataAccessException
- org.springframework.dao.NonTransientDataAccessException
- org.springframework.dao.InvalidDataAccessApiUsageException
- 所有已实现的接口:
Serializable
public class InvalidDataAccessApiUsageException extends NonTransientDataAccessException
Exception thrown on incorrect usage of the API, such as failing to "compile" a query object that needed compilation before execution.This represents a problem in our Java data access framework, not the underlying data access infrastructure.
- 作者:
- Rod Johnson
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 InvalidDataAccessApiUsageException(String msg)
Constructor for InvalidDataAccessApiUsageException.InvalidDataAccessApiUsageException(String msg, Throwable cause)
Constructor for InvalidDataAccessApiUsageException.
方法概要
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
InvalidDataAccessApiUsageException
public InvalidDataAccessApiUsageException(String msg)
Constructor for InvalidDataAccessApiUsageException.- 参数:
msg
- the detail message
InvalidDataAccessApiUsageException
public InvalidDataAccessApiUsageException(String msg, Throwable cause)
Constructor for InvalidDataAccessApiUsageException.- 参数:
msg
- the detail messagecause
- the root cause from the data access API in use