Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
DatabaseEnvironmentConfig..::.ErrorFeedback Field
DatabaseEnvironmentConfig Class See Also Send Feedback

The mechanism for reporting detailed error messages to the application.

Namespace: BerkeleyDB
Assembly: libdb_dotnet53 (in libdb_dotnet53.dll) Version: 5.3.28.0

# Syntax

C#
    public ErrorFeedbackDelegate ErrorFeedback

Visual Basic (Declaration)
    Public ErrorFeedback As ErrorFeedbackDelegate

Visual C++
    public:
    ErrorFeedbackDelegate^ ErrorFeedback

# Remarks

When an error occurs in the Berkeley DB library, a DatabaseException, or subclass of DatabaseException, is thrown. In some cases, however, the exception may be insufficient to completely describe the cause of the error, especially during initial application debugging.

In some cases, when an error occurs, Berkeley DB will call the given delegate with additional error information. It is up to the delegate to display the error message in an appropriate manner.

Setting ErrorFeedback to NULL unconfigures the callback interface.

This error-logging enhancement does not slow performance or significantly increase application size, and may be run during normal operation as well as during application debugging.

# See Also

DatabaseEnvironmentConfig Class
BerkeleyDB Namespace