类 SQLWarningException
- 所有已实现的接口:
Serializable
public class SQLWarningException extends UncategorizedDataAccessException
Exception thrown when we're not ignoringSQLWarnings
.If a SQLWarning is reported, the operation completed, so we will need to explicitly roll it back if we're not happy when looking at the warning. We might choose to ignore (and log) the warning, or to wrap and throw it in the shape of this SQLWarningException instead.
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
JdbcTemplate.setIgnoreWarnings(boolean)
, 序列化表格
构造器概要
构造器 构造器 说明 SQLWarningException(String msg, SQLWarning ex)
Constructor for SQLWarningException.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 SQLWarning
SQLWarning()
Return the underlying SQLWarning.从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
SQLWarningException
public SQLWarningException(String msg, SQLWarning ex)
Constructor for SQLWarningException.- 参数:
msg
- the detail messageex
- the JDBC warning
方法详细资料
SQLWarning
public SQLWarning SQLWarning()
Return the underlying SQLWarning.