Method SetExceptionSetException(Exception)Sets the exception for the method or activity. Declaration public override void SetException(Exception exception) Parameters Type Name Description Exception exception An Exception. OverridesLogRecordBuilder.SetException(Exception)