类 UncategorizedSQLException
- 所有已实现的接口:
Serializable
public class UncategorizedSQLException extends UncategorizedDataAccessException
Exception thrown when we can't classify a SQLException into one of our generic data access exceptions.- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 UncategorizedSQLException(String task, String sql, SQLException ex)
Constructor for UncategorizedSQLException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getSql()
Return the SQL that led to the problem.SQLException
getSQLException()
Return the underlying SQLException.从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
UncategorizedSQLException
public UncategorizedSQLException(String task, String sql, SQLException ex)
Constructor for UncategorizedSQLException.- 参数:
task
- name of current tasksql
- the offending SQL statementex
- the root cause
方法详细资料
getSQLException
public SQLException getSQLException()
Return the underlying SQLException.