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.
Property | Description |
---|---|
Code | Gets the error code. |
Message | Gets the error message. |
SqlState | Gets the five-character SQLSTATE value that describes the error. |
Clients that want to process errors sent by the server should create a MySqlErrorEventHandler delegate to listen to this event.