Working with Derby SQLExceptions in an Application

JDBC generates exceptions of the type java.sql.SQLException. To see the exceptions generated by Derby, retrieve and process the SQLExceptions in a catch block.

Related concepts
The JDBC Connection and Transaction Model
SQL and JDBC ResultSet/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