PostSharp 6.5 / / Post­Sharp Documentation / 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.5.19.0 (6.5.19.0)
Syntax
C#
public virtual void SetException(
	Exception exception
)

Parameters

exception
Type: System.Exception
An Exception.

Implements

ICustomLogRecordBuilder.SetException(Exception)
See Also