ThrowingLoggingExceptionHandler Class |
An implementation of the ILoggingExceptionHandler that throws a LoggingException
or an InvalidOperationException.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public class ThrowingLoggingExceptionHandler : ILoggingExceptionHandler
The ThrowingLoggingExceptionHandler type exposes the following members.
Name | Description | |
---|---|---|
ThrowingLoggingExceptionHandler | Initializes a new instance of the ThrowingLoggingExceptionHandler class |
Name | Description | |
---|---|---|
OnInternalException |
Method invoked when an exception is thrown in logging code.
| |
OnInvalidUserCode |
Method invoked when a logging component detects a precondition violation
that probably stem from user-written code.
|