Top Description Fields Constructors Methods
org.springframework.jdbc

public Class UncategorizedSQLException

extends UncategorizedDataAccessException
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.sql.SQLException, org.springframework.dao.UncategorizedDataAccessException, org.springframework.lang.Nullable

Exception thrown when we can't classify an SQLException into one of our generic data access exceptions.
Authors
Rod Johnson, Juergen Hoeller

Field Summary

Modifier and TypeField and Description
private final String
sql

SQL that led to the problem.

Constructor Summary

AccessConstructor and Description
public
UncategorizedSQLException(String
name of current task
task
,
String
the offending SQL statement
sql
,
SQLException
the root cause
ex
)

Constructor for UncategorizedSQLException.

Method Summary

Modifier and TypeMethod and Description
public String
getSql()

Return the SQL that led to the problem (if known).

public SQLException
getSQLException()

Return the underlying SQLException.

Field Detail

sqlback to summary
private final String sql

SQL that led to the problem.

Annotations
@Nullable

Constructor Detail

UncategorizedSQLExceptionback to summary
public UncategorizedSQLException(String task, String sql, SQLException ex)

Constructor for UncategorizedSQLException.

Parameters
task:String

name of current task

sql:String

the offending SQL statement

ex:SQLException

the root cause

Method Detail

getSqlback to summary
public String getSql()

Return the SQL that led to the problem (if known).

Annotations
@Nullable
getSQLExceptionback to summary
public SQLException getSQLException()

Return the underlying SQLException.