dotConnect for DB2 Documentation
Devart.Data.DB2 Namespace / DB2Connection Class / Error Event

In This Topic
    Error Event (DB2Connection)
    In This Topic
    Occurs when DB2 returns an error.
    Syntax
    '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.

    PropertyDescription
    Gets the DB2 specific error code.  
    Gets the exception that caused the connection error.  
    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