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. |
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.
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