PostSharp / / API Reference / Post­Sharp.​Patterns.​Diagnostics / ILog­Activity / Set­Exception

Method SetException

SetException(Exception, in CloseActivityOptions)

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

SetException(Exception, in CloseActivityOptions, ref CallerInfo)

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