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

In This Topic
    Error Event (MySqlConnection)
    In This Topic
    Occurs when MySQL returns an error.
    Syntax
    'Declaration
     
    Public Event Error As MySqlErrorEventHandler
    public event MySqlErrorEventHandler Error
    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.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also