dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlConnection Class / Error Event

In This Topic
    Error Event (PgSqlConnection)
    In This Topic
    Occurs when PostgreSQL server sends an error message.
    Syntax
    'Declaration
     
    Public Event Error As PgSqlErrorEventHandler
    public event PgSqlErrorEventHandler Error
    Event Data

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

    PropertyDescription
    Gets the PgSqlError sent from the database.  
    Remarks

    This event is fired when PostgreSQL server sends a message with Severity.Error. To trap other messages you should listen to the InfoMessage event.

    Immediately after the event is processed, an exception is raised.

    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