Description: JDBC generates exceptions of the type java.sql.SQLException. If your application runs on JDK 1.6 or higher, the exceptions will be the refined subtypes of java.sql.SQLException introduced by JDBC4. To see the exceptions generated by Derby, retrieve and process the SQLExceptions in a catch block.
Keywords: SQLExceptions, working with

# Working with Derby SQLExceptions in an application

JDBC generates exceptions of the type java.sql.SQLException. If your application runs on JDK 1.6 or higher, the exceptions will be the refined subtypes of java.sql.SQLException introduced by JDBC4. To see the exceptions generated by Derby, retrieve and process the `SQLExceptions` in a catch block.

- Information provided in SQL Exceptions
  Derby provides the message, SQLState values, and error codes in SQL exceptions.

Parent topic: Controlling Derby application behavior
Related concepts
The JDBC Connection and Transaction Model
Result set and cursor mechanisms
Locking, concurrency, and isolation
Working with multiple connections to a single database
Working with multiple threads sharing a single connection
Working with database threads in an embedded environment