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
java.sql.DatabaseMetaData
java.sql.Statement
javax.sql.DataSource