5 The DB2 Data Provider : Error Handling

Error Handling
The DB2Error object collects information relevant to errors and warnings generated by the DB2 server. Refer to DB2Error in the online help for more information.
The DB2Exception object is created and thrown when the DB2 server returns an error. Exceptions generated by the data provider are returned as standard run-time exceptions. If an exception is raised by an error from the data source, it is returned as a provider-specific exception. If the exception is raised by the data provider itself, it is returned as a standard .NET Framework exception. Some provider-specific code is required when handling provider-specific exceptions.
Refer to DB2Exception in the online help for more information.