C# Class Npgsql.NpgsqlException

Inheritance: System.Data.Common.DbException
Show file Open project: undeadlabs/Npgsql Class Usage Examples

Public Methods

Method Description
GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Get object data.

ToString ( ) : String

Format a .NET style exception string. Include all errors in the list, including any hints.

this ( Int32 Index ) : Npgsql.NpgsqlError

Provide access to the entire list of errors provided by the PostgreSQL backend.

Private Methods

Method Description
AppendString ( StringWriter Stream, string Format, string Str ) : void

Append a line to the given Stream, first checking for zero-length.

NpgsqlException ( IList errors ) : System

Construct a backend error exception based on a list of one or more backend errors. The basic Exception.Message will be built from the first (usually the only) error in the list.

NpgsqlException ( SerializationInfo info, StreamingContext context ) : System
NpgsqlException ( String message ) : System
NpgsqlException ( String message, Exception innerException ) : System

Method Details

GetObjectData() public method

Get object data.
public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return void

ToString() public method

Format a .NET style exception string. Include all errors in the list, including any hints.
public ToString ( ) : String
return String

this() public method

Provide access to the entire list of errors provided by the PostgreSQL backend.
public this ( Int32 Index ) : Npgsql.NpgsqlError
Index System.Int32
return Npgsql.NpgsqlError