Npgsql API Documentation

NpgsqlException Members

[This is preliminary documentation and subject to change.]

NpgsqlException overview

Public Instance Properties

BaseMessage Basic error message. All versions.
Code Error code. PostgreSQL 7.4 and up.
Detail Detailed error message. PostgreSQL 7.4 and up.
Errors Returns the entire list of errors provided by the PostgreSQL backend.
File Source file (in backend) reporting the error. PostgreSQL 7.4 and up.
HelpLink (inherited from Exception)Gets or sets a link to the help file associated with this exception.
Hint Suggestion to help resolve the error. PostgreSQL 7.4 and up.
InnerException (inherited from Exception) Gets the Exception instance that caused the current exception.
Item Provide access to the entire list of errors provided by the PostgreSQL backend.
Line Source file line number (in backend) reporting the error. PostgreSQL 7.4 and up.
Message (inherited from Exception) Gets a message that describes the current exception.
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.
Severity Severity code. All versions.
Source (inherited from Exception) Gets or sets the name of the application or the object that causes the error.
StackTrace (inherited from Exception) Gets a string representation of the frames on the call stack at the time the current exception was thrown.
TargetSite (inherited from Exception) Gets the method that throws the current exception.
Where Trace back information. PostgreSQL 7.4 and up.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetBaseException (inherited from Exception) When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetObjectData (inherited from Exception)When overridden in a derived class, sets the SerializationInfo with information about the exception.
GetType (inherited from Object)Gets the Type of the current instance.
ToString Format a .NET style exception string. Include all errors in the list, including any hints.

See Also

NpgsqlException Class | Npgsql Namespace