PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsThrowing­Logging­Exception­Handler
Open sandboxFocus

ThrowingLoggingExceptionHandler Class

An implementation of the ILoggingExceptionHandler that throws a LoggingException or an System.InvalidOperationException.

Inheritance
ThrowingLoggingExceptionHandler
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class ThrowingLoggingExceptionHandler : Object, ILoggingExceptionHandler

Constructors

Name Description
ThrowingLoggingExceptionHandler()

Methods

Name Description
Initialize()
OnInternalException(LoggingExceptionInfo)

Method invoked when an exception is thrown in logging code.

OnInvalidUserCode(ref CallerInfo, LoggingTypeSource, String, Object[])

Method invoked when a logging component detects a precondition violation that probably stem from user-written code.