PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics/Log­Activity<TActivity­Description>/Set­Exception
Open sandboxFocus

Method SetException

SetException(Exception, in CloseActivityOptions)

Declaration
public void SetException(Exception exception, in CloseActivityOptions options = null)
Parameters
Type Name Description
Exception exception
CloseActivityOptions options

SetException(Exception, in CloseActivityOptions, ref CallerInfo)

Declaration
public void SetException(Exception exception, in CloseActivityOptions options, ref CallerInfo callerInfo)
Parameters
Type Name Description
Exception exception
CloseActivityOptions options
CallerInfo callerInfo