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