PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Default­Logging­Exception­Handler Class/Default­Logging­Exception­Handler Methods/Default­Logging­Exception­Handler.​On­Invalid­User­Code Method

DefaultLoggingExceptionHandler.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.6.10.0 (6.6.10.0)
Syntax
C#
public virtual 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