You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Error Messages and <strong>JDBC</strong>To handle exceptions, the <strong>Cincom</strong> ORDB <strong>JDBC</strong> driver throws ajava.sql.SQLException() for both database and <strong>JDBC</strong> Driver errors. Theexception object contains a text message describing the error.You can display the error messages with these methods:♦♦getMessage() — Returns the error message associated with the objectthat threw the exceptionprintStackTrace() — Prints this object name and its StackTrace to thespecified print streamThe following example uses both the getMessage() method and theprintStackTrace() method to return errors:catch(SQLException e);{System.out.println("exception: " + e.getMessage());e.printStackTrace();}The text of all error messages is internationalized. That is, they areavailable in all of the languages and character sets supported by<strong>Cincom</strong> ORDB. For a list of these error messages, refer to the <strong>Cincom</strong>BIfor SUPRA Messages and Codes, P25-9502.<strong>JDBC</strong> <strong>Developer's</strong> <strong>Guide</strong>, P25-9504-03 Page 27Chapter: 3. Basic FeaturesSection: Error Messages and <strong>JDBC</strong>