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

Occurs when PostgreSQL server sends an error message.


Visual Basic (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.

Error Gets the PgSqlError sent from the database.


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.


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