Npgsql Api Docs

NpgsqlError Properties

The properties of the NpgsqlError class are listed below. For a complete list of NpgsqlError class members, see the NpgsqlError Members topic.

Public Instance Properties

Code Error code. PostgreSQL 7.4 and up.
ColumnName Column name which relates to the error. PostgreSQL 9.3 and up.
ConstraintName Constraint name which relates to the error. PostgreSQL 9.3 and up.
DataTypeName Data type of column which relates to the error. PostgreSQL 9.3 and up.
Detail Detailed error message. PostgreSQL 7.4 and up.
ErrorSql String containing the sql sent which produced this error.
File Source file (in backend) reporting the error. PostgreSQL 7.4 and up.
Hint Suggestion to help resolve the error. PostgreSQL 7.4 and up.
InternalPosition Position (one based) within the query string where the error was encounterd. This position refers to an internal command executed for example inside a PL/pgSQL function. PostgreSQL 7.4 and up.
InternalQuery Internal query string where the error was encounterd. This position refers to an internal command executed for example inside a PL/pgSQL function. PostgreSQL 7.4 and up.
Line Source file line number (in backend) reporting the error. PostgreSQL 7.4 and up.
Message Terse error message. All versions.
Position Position (one based) within the query string where the error was encounterd. PostgreSQL 7.4 and up.
Routine Source routine (in backend) reporting the error. PostgreSQL 7.4 and up.
SchemaName Schema name which relates to the error. PostgreSQL 9.3 and up.
Severity Severity code. All versions.
TableName Table name which relates to the error. PostgreSQL 9.3 and up.
Where Trace back information. PostgreSQL 7.4 and up.

See Also

NpgsqlError Class | Npgsql Namespace