PostSharp 6.9 / / Post­Sharp Documentation / 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.9.11.0 (6.9.11.0)
Syntax
C#
void SetException(
	Exception exception
)

Parameters

exception
Type: System.Exception
The Exception.
See Also