dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlConnection Class / Error Event

Error Event (MySqlConnection)
Occurs when MySQL returns an error.
Syntax
'Declaration
 
Public Event Error As MySqlErrorEventHandler
 
Event Data

The event handler receives an argument of type MySqlErrorEventArgs containing data related to this event. The following MySqlErrorEventArgs properties provide information specific to this event.

PropertyDescription
Gets the error code.  
Gets the error message.  
Gets the five-character SQLSTATE value that describes the error.  
Remarks

Clients that want to process errors sent by the server should create a MySqlErrorEventHandler delegate to listen to this event.

See Also