dotConnect for PostgreSQL Documentation
Error Event
See Also  support@devart.com
Devart.Data.PostgreSql Namespace > PgSqlConnection Class : Error Event

Occurs when PostgreSQL server sends an error message.

Syntax

Visual Basic (Declaration) 
Public Event Error As PgSqlErrorEventHandler
C# 
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
Error Gets the PgSqlError sent from the database.

Remarks

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

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

Requirements

Platforms:Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8, Windows 10, Windows Server 2012 family.

See Also