Class UncategorizedSQLException

All Implemented Interfaces:

public class UncategorizedSQLException extends UncategorizedDataAccessException
Exception thrown when we can't classify an SQLException into one of our generic data access exceptions.
Rod Johnson, Juergen Hoeller
See Also:
  • Constructor Details

    • UncategorizedSQLException

      public UncategorizedSQLException(String task, @Nullable String sql, SQLException ex)
      Constructor for UncategorizedSQLException.
      task - name of current task
      sql - the offending SQL statement
      ex - the root cause
  • Method Details

    • getSQLException

      public SQLException getSQLException()
      Return the underlying SQLException.
    • getSql

      @Nullable public String getSql()
      Return the SQL that led to the problem (if known).