'Declaration Public Event Error As DB2ConnectionErrorEventHandler |
public event DB2ConnectionErrorEventHandler Error |
Event Data
The event handler receives an argument of type DB2ConnectionErrorEventArgs containing data related to this event. The following DB2ConnectionErrorEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Code | Gets the DB2 specific error code. |
| Exception | Gets the exception that caused the connection error. |
| Message | Gets the full text of the error sent from the DB2 database. |
Remarks
Clients that want to process errors sent by the server should create a Devart.Data.DB2.DB2ErrorEventHandler delegate to listen to this event.
See Also
Reference
DB2Connection Class
DB2Connection Members
Devart.Data.DB2.DB2ErrorEventArgs
Devart.Data.DB2.DB2ErrorEventHandler
InfoMessage Event