Firebird ADO.NET Provider SDK Documentation - v1.7

FbError Class

Collects information relevant to a error returned by Firebird. This class cannot be inherited.

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

System.Object
   FirebirdSql.Data.Firebird.FbError

[Visual Basic]
<Serializable>
NotInheritable Public Class FbError
[C#]
[Serializable]
public sealed class FbError

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 instantiated by the Firebird .NET Data Provider when an error occurs. An instance of FbError is created and managed by the FbException class.

Example

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

FbError Members | FirebirdSql.Data.Firebird Namespace