jConnect provides two classes for returning Sybase-specific
error information, SybSQLException and SybSQLWarning,
as well as a SybMessageHandler interface that
allows you to customize the way jConnect handles error messages
received from the server.
Customizing Error-Message Handling
Use the SybMessageHandler interface to customize the way jConnect handles error messages generated by the server.
Installing an Error-Message Handler
Install an error-message handler implementing SybMessageHandler by calling the setMessageHandler method from SybDriver, SybConnection, or SybStatement.