ErrorCode Enumeration | Apache log4net™ SDK Documentation

Defined error codes that can be passed to the [M:IErrorHandler.Error(string, Exception, ErrorCode)] method.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public enum ErrorCode

    Public Enumeration ErrorCode

    public enum class ErrorCode

    type ErrorCode

Members

| Member name | Value | Description
--- | --- | --- | ---
| GenericFailure | 0 | A general error
| WriteFailure | 1 | Error while writing output
| FlushFailure | 2 | Failed to flush file
| CloseFailure | 3 | Failed to close file
| FileOpenFailure | 4 | Unable to open output file
| MissingLayout | 5 | No layout specified
| AddressParseFailure | 6 | Failed to parse address

Remarks

Values passed to the [M:IErrorHandler.Error(string, Exception, ErrorCode)] method.

See Also

#### Reference

log4net.Core Namespace