public class

UncategorizedSQLException

extends UncategorizedDataAccessException
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.UncategorizedDataAccessException
                 ↳ org.springframework.jdbc.UncategorizedSQLException

Class Overview

Exception thrown when we can't classify a SQLException into one of our generic data access exceptions.

Summary

Public Constructors
UncategorizedSQLException(String task, String sql, SQLException ex)
Constructor for UncategorizedSQLException.
Public Methods
SQLException getSQLException()
Return the underlying SQLException.
String getSql()
Return the SQL that led to the problem.
[Expand]
Inherited Methods
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public UncategorizedSQLException (String task, String sql, SQLException ex)

Constructor for UncategorizedSQLException.

Parameters
task name of current task
sql the offending SQL statement
ex the root cause

Public Methods

public SQLException getSQLException ()

Return the underlying SQLException.

public String getSql ()

Return the SQL that led to the problem.