Table of Contents

Class LoggingException

Namespace
Microsoft.Practices.EnterpriseLibrary.Logging
Assembly
Microsoft.Practices.EnterpriseLibrary.Logging.dll

Logging Application Block exception.

public class LoggingException : Exception, ISerializable
Inheritance
LoggingException
Implements
Inherited Members

Constructors

LoggingException()

Initializes a new instance of the LoggingException class.

public LoggingException()

LoggingException(SerializationInfo, StreamingContext)

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

protected LoggingException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The object that holds the serialized object data.

context StreamingContext

The contextual information about the source or destination.

LoggingException(string)

Initializes a new instance of the LoggingException class with a specified error message.

public LoggingException(string message)

Parameters

message string

A message that describes the error.

LoggingException(string, Exception)

Initializes a new instance of the LoggingException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public LoggingException(string message, Exception exception)

Parameters

message string

The error message that explains the reason for the exception.

exception Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.