PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomILogger­Exception­HandlerOn­Invalid­User­Code
Open sandboxFocus

ILoggerExceptionHandler.OnInvalidUserCode Method

OnInvalidUserCode(ref CallerInfo, String, Object[])

Method invoked when the user code calling Logger or LogActivity is invalid, e.g. when the formatting string is incorrect or does not match the arguments.

void OnInvalidUserCode(ref CallerInfo callerInfo, string format, params object[] args)
Type Name Description
CallerInfo callerInfo

Information about the line of code causing the error.

String format

Formatting string of the error message.

Object[] args