PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace/ICustom­Log­Record­Builder Interface/ICustom­Log­Record­Builder Methods/ICustom­Log­Record­Builder.​Set­Exception Method

ICustomLogRecordBuilder.SetException Method

Assigns an Exception to the record.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
void SetException(
	Exception exception
)

Parameters

exception
Type: System.Exception
The Exception.
See Also