IErrorHandler Error Method (String, Exception, ErrorCode) | Apache log4net™ SDK Documentation

Handles the error and information about the error condition is passed as a parameter.

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

C#
VB
C++
F#
Copy

    void Error(
    	string message,
    	Exception e,
    	ErrorCode errorCode
    )

    Sub Error (
    	message As String,
    	e As Exception,
    	errorCode As ErrorCode
    )

    void Error(
    	String^ message,
    	Exception^ e,
    	ErrorCode errorCode
    )

    abstract Error :
            message : string *
            e : Exception *
            errorCode : ErrorCode -> unit

#### Parameters

message
  Type: System
  String
  The message associated with the error.
e
  Type: System
  Exception
  The Exception that was thrown when the error occurred.
errorCode
  Type: log4net.Core
  ErrorCode
  The error code associated with the error.

Remarks

Handles the error and information about the error condition is passed as a parameter.

See Also

#### Reference

IErrorHandler Interface
Error Overload
log4net.Core Namespace