PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Record­BuildersLog­Record­BuilderSet­Exception
Open sandboxFocus

LogRecordBuilder.SetException Method

SetException(Exception)

Sets the exception for the method or activity.

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

An Exception.

Implements
ICustomLogRecordBuilder.SetException(Exception)