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

Error Event (PgSqlConnection)
Occurs when PostgreSQL server sends an error message.
Syntax
'Declaration
 
Public Event Error As PgSqlErrorEventHandler
 
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.

See Also