Firebird ADO.NET Provider SDK Documentation - v1.7

FbErrorCollection Class

Collects all errors generated by the Firebird .NET Data Provider. This class cannot be inherited.

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

System.Object
   FirebirdSql.Data.Firebird.FbErrorCollection

[Visual Basic]
<Serializable, _  DefaultMember(MemberName:="Item"), _  ListBindable(ListBindable:=False)>
NotInheritable Public Class FbErrorCollection
    Implements ICollection, IEnumerable
[C#]
[Serializable]
[DefaultMember(MemberName="Item")]
[ListBindable(ListBindable=False)]
public sealed class FbErrorCollection : ICollection, IEnumerable

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.

Remarks

This class is created by FbException to collect instances of the FbError class. FbErrorCollection always contains at least one instance of the FbError class.

Example

The example display each FbError within the FbCollection collection.

public void DisplayFbErrors(FbException myException) 
{
    for (int i=0; i < myException.Errors.Count; i++)
    {
    MessageBox.Show("Index #" + i + "\n" +
            "Error: " + myException.Errors[i].ToString() + "\n");
    }
}    
            

Requirements

Namespace: FirebirdSql.Data.Firebird

Assembly: FirebirdSql.Data.Firebird (in FirebirdSql.Data.Firebird.dll)

See Also

FbErrorCollection Members | FirebirdSql.Data.Firebird Namespace