Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

OnlyOnceErrorHandler.Error�Method�(String, Exception, ErrorCode)

Log an Error

[Visual�Basic]
NotOverridable�Overloads�Public�Sub�Error( _
���ByVal message�As�String,�_
���ByVal e�As�Exception,�_
���ByVal errorCode�As�ErrorCode�_
)�_
����Implements�IErrorHandler.Error
[C#]
public�void�Error(
���stringmessage,
���Exceptione,
���ErrorCodeerrorCode
);

Parameters

message
The error message.
e
The exception.
errorCode
The internal error code.

Implements

IErrorHandler.Error

Remarks

Invokes FirstError if and only if this is the first error or the first error after Reset has been called.

See Also

OnlyOnceErrorHandler Class | log4net.Util Namespace | OnlyOnceErrorHandler.Error Overload List