PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Throwing­Logging­Exception­Handler Class / Throwing­Logging­Exception­Handler Methods / Throwing­Logging­Exception­Handler.​On­Invalid­User­Code Method

ThrowingLoggingExceptionHandler.OnInvalidUserCode Method

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

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public void OnInvalidUserCode(
	ref CallerInfo callerInfo,
	LoggingTypeSource source,
	string message,
	params Object[] args
)

Parameters

callerInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.CallerInfo
Location of the code that performed the invalid call, or an empty instance if the information is not available.
source
Type: PostSharp.Patterns.Diagnostics.LoggingTypeSource
Related LoggingTypeSource, or null if it is not available.
message
Type: System.String
Error message formatting string.
args
Type: System.Object[]
Arguments for the formatting string, or null.

Implements

ILoggingExceptionHandler.OnInvalidUserCode(CallerInfo, LoggingTypeSource, String, Object[])
See Also