PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Record­BuildersText­Log­Record­BuilderSet­Exception
Open sandboxFocus

TextLogRecordBuilder.SetException Method

SetException(Exception)

Sets the exception for the method or activity.

Declaration
public override void SetException(Exception exception)
Parameters
Type Name Description
System.Exception exception

An System.Exception.

Overrides
LogRecordBuilder.SetException(Exception)