SPWorkflowEventProperties.ErrorException property

Gets the error that caused the workflow to end.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property ErrorException As Exception
    Get
'Usage
Dim instance As SPWorkflowEventProperties
Dim value As Exception

value = instance.ErrorException
public Exception ErrorException { get; }

Property value

Type: System.Exception
The error that caused the workflow to end.

Remarks

This property is only valid if the EventType property is WorkflowCompleted and the CompletionType property is Errored.

See also

Reference

SPWorkflowEventProperties class

SPWorkflowEventProperties members

Microsoft.SharePoint.Workflow namespace