Npgsql.NpgsqlException.NpgsqlException C# (CSharp) Method

NpgsqlException() private method

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.
private NpgsqlException ( IList errors ) : System
errors IList
return System
        internal NpgsqlException(IList<NpgsqlError> errors)
            : base(errors[0].ToString())
        {
            NpgsqlEventLog.LogMsg(resman, "Log_ExceptionOccured", LogLevel.Normal, Message);

            this.errors = new NpgsqlError[errors.Count];
            errors.CopyTo(this.errors, 0);
        }

Same methods

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