Class LogException
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
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe 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
messagestringA 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
messagestringA message to include with the exception.
innerExceptionExceptionA nested exception to include.
Remarks
Initializes a new instance of the LogException class with the specified message and inner exception.