PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace/Log­Record­Builder Class/Log­Record­Builder Methods/Log­Record­Builder.​Set­Exception Method

LogRecordBuilder.SetException Method

Sets the exception for the method or activity.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public virtual void SetException(
	Exception exception
)

Parameters

exception
Type: System.Exception
An Exception.

Implements

ICustomLogRecordBuilder.SetException(Exception)
See Also