'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.
| Property | Description |
|---|---|
| Error | 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