PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Audit/Audit­Record­Builder/Set­Exception
Open sandboxFocus

Method SetException

SetException(Exception)

Sets the exception for the method or activity.

Declaration
public override void SetException(Exception exception)
Parameters
Type Name Description
Exception exception

An Exception.

Overrides
TextLogRecordBuilder.SetException(Exception)