PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Audit Namespace / Audit­Record­Builder Class / Audit­Record­Builder Methods / Audit­Record­Builder.​Set­Exception Method

AuditRecordBuilder.SetException Method

Sets the exception for the method or activity.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Audit
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public override void SetException(
	Exception exception
)

Parameters

exception
Type: System.Exception
An Exception.

Implements

ICustomLogRecordBuilder.SetException(Exception)
See Also