Error Handling
The drivers report errors to the application by throwing SQLExceptions. Each SQLException contains the following information:

Description of the probable cause of the error, prefixed by the component that generated the error

Native error code (if applicable)

String containing the XOPEN SQLstate
For details, see the following topics: