WorkflowRuntimeService.RaiseServicesExceptionNotHandledEvent(Exception, Guid) WorkflowRuntimeService.RaiseServicesExceptionNotHandledEvent(Exception, Guid) WorkflowRuntimeService.RaiseServicesExceptionNotHandledEvent(Exception, Guid) Method

Definition

Raises the ServicesExceptionNotHandled event.

protected:
 void RaiseServicesExceptionNotHandledEvent(Exception ^ exception, Guid instanceId);
protected void RaiseServicesExceptionNotHandledEvent (Exception exception, Guid instanceId);
member this.RaiseServicesExceptionNotHandledEvent : Exception * Guid -> unit

Parameters

exception
Exception Exception Exception

The exception that could not be handled.

instanceId
Guid Guid Guid

The Guid of the workflow instance associated with the unhandled exception.

Remarks

Your service can call RaiseServicesExceptionNotHandledEvent to raise the WorkflowRuntime.ServicesExceptionNotHandled event when it encounters an exception that it cannot handle during its execution. You should pass the Guid of the workflow instance associated with the unhandled exception. For example, a timer service might pass the Guid associated with the timer for which the exception occurred.

Applies to