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.