Table of Contents

Class LogException

Namespace
log4net.Core
Assembly
log4net.dll

Exception base type for log4net.

public class LogException : ApplicationException, ISerializable
Inheritance
LogException
Implements
Inherited Members

Remarks

This type extends ApplicationException. It does not add any new functionality but does differentiate the type of exception being thrown.

Constructors

LogException()

Constructor

public LogException()

Remarks

Initializes a new instance of the LogException class.

LogException(SerializationInfo, StreamingContext)

Serialization constructor

protected LogException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Remarks

Initializes a new instance of the LogException class with serialized data.

LogException(string)

Constructor

public LogException(string message)

Parameters

message string

A message to include with the exception.

Remarks

Initializes a new instance of the LogException class with the specified message.

LogException(string, Exception)

Constructor

public LogException(string message, Exception innerException)

Parameters

message string

A message to include with the exception.

innerException Exception

A nested exception to include.

Remarks

Initializes a new instance of the LogException class with the specified message and inner exception.