The mechanism for reporting detailed error messages to the application.

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet181 (in libdb_dotnet181.dll) Version: 18.1.32.0

Syntax

C#
public ErrorFeedbackDelegate ErrorFeedback { get; set; }
Visual Basic (Declaration)
Public Property ErrorFeedback As ErrorFeedbackDelegate
Visual C++
public:
property ErrorFeedbackDelegate^ ErrorFeedback {
	ErrorFeedbackDelegate^ get ();
	void set (ErrorFeedbackDelegate^ value);
}

Remarks

When an error occurs in the Berkeley DB library, a DatabaseException, or subclass of DatabaseException, is thrown. In some cases 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 calls 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 resets 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.

For databases opened inside of a DatabaseEnvironment, setting ErrorFeedback affects the entire environment and is equivalent to setting DatabaseEnvironment.ErrorFeedback.

For databases not opened in an environment, setting ErrorFeedback configures operations performed using the specified object, instead of all operations performed on the underlying database.

See Also