skip to main content
Using the driver : Error Handling
  

Try DataDirect Drivers Now

Error Handling

SQLExceptions

The driver reports 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

Driver Errors

An error generated by the driver has the format shown in the following example:
[DataDirect][MongoDB JDBC Driver]Timeout expired.
You may need to check the last JDBC call your application made and refer to the JDBC specification for the recommended action.

Database Errors

An error generated by the database has the format shown in the following example:
[DataDirect][MongoDB JDBC Driver][MongoDB]Invalid Object Name.
If you need additional information, use the native error code to look up details in your database documentation.