WorkflowRuntimeService.RaiseServicesExceptionNotHandledEvent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raises the ServicesExceptionNotHandled event.
protected:
void RaiseServicesExceptionNotHandledEvent(Exception ^ exception, Guid instanceId);
protected void RaiseServicesExceptionNotHandledEvent (Exception exception, Guid instanceId);
member this.RaiseServicesExceptionNotHandledEvent : Exception * Guid -> unit
Protected Sub RaiseServicesExceptionNotHandledEvent (exception As Exception, instanceId As Guid)
Parameters
- exception
- Exception
The exception that could not be handled.
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.