Refined subclasses of SQLException

If your application runs on JDK 1.6 or higher, exceptions raised by Derby will generally be one of the refined subclasses of SQLException, introduced by JDBC 4.0. These refined exceptions are raised under the conditions described by their respective javadoc.

Related reference
java.sql.Connection interface: JDBC 4.0 features
java.sql.DatabaseMetaData interface: JDBC 4.0 features
java.sql.Statement interface: JDBC 4.0 features
javax.sql.DataSource interface: JDBC 3 and JDBC 4.0 features
java.sql.SQLXML interface