Java clients handle errors by catching exceptions. To enable Java proxies to throw exceptions, OpenEdge establishes two exception class hierarchies:
General ABL exceptions — A hierarchy of exception classes that extend the Open4GLException class. Open4GLException, in turn, extends the com.progress.common.exception.ProException class.
Output ResultSet exceptions — A ProSQLException class, which extends the standard java.sql.SQLException class.
In addition to the standard methods provided by java.lang.Exception to get the message string, OpenEdge provides the following method to obtain the error number:
long getMessageID()
For information about additional methods provided by these exception classes, see the Open Client Toolkit documentation in OpenEdge-install-directory/java/doc/.
The following sections describe each Exception class in detail.