Npgsql Api Docs |

# NpgsqlException Class

The exception that is thrown when the PostgreSQL backend reports errors.

For a list of all members of this type, see NpgsqlException Members.

System.Object
System.Exception
System.SystemException
System.Runtime.InteropServices.ExternalException
System.Data.Common.DbException
Npgsql.NpgsqlException

[Visual Basic]
NotInheritable Public Class NpgsqlException
Inherits DbException
[C#]
public sealed class NpgsqlException : DbException

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Requirements

Namespace: Npgsql

Assembly: Npgsql (in Npgsql.dll)

#### See Also

NpgsqlException Members | Npgsql Namespace