# Class WorkflowErrorEventArgs OptimaJet.Workflow.Core.Runtime.WorkflowErrorEventArgs Provides event data for [WorkflowRuntime.OnWorkflowError](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/) and [WorkflowRuntime.OnWorkflowErrorAsync](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/). Namespace: [OptimaJet.Workflow.Core.Runtime](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/) ```csharp public class WorkflowErrorEventArgs : EventArgs ``` ## Type Hierarchy - [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs) - WorkflowErrorEventArgs Current type ## Constructors `public WorkflowErrorEventArgs(ProcessInstance processInstance, ProcessStatus processStatus, TransitionDefinition executedTransition, Exception exception)` Initializes a new instance of the [WorkflowErrorEventArgs](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowErrorEventArgs/) class. ### Parameters | Name | Type | Description | | --- | --- | --- | | `processInstance` | `ProcessInstance` | The process instance whose execution caused the error. | | `processStatus` | `ProcessStatus` | The status of the process at the time of the error. | | `executedTransition` | `TransitionDefinition` | The transition that was being executed when the error occurred. | | `exception` | `Exception` | The exception that was thrown. | ## Properties `public Exception Exception { get; set; }` Gets or sets the exception that was thrown. `public ProcessInstance ProcessInstance { get; set; }` Gets or sets the process instance whose execution caused the error. `public ProcessStatus ProcessStatus { get; set; }` Gets or sets the process status at the time of the error. `public TransitionDefinition ExecutedTransition { get; set; }` Gets or sets the transition that was being executed when the error occurred. `public bool SuppressThrow { get; set; }` Gets or sets a value indicating whether the thrown exception will be suppressed. false means the exception will be propagated. true means the exception will be suppressed. `public ActivityDefinition ActivityToSet { get; set; }` Gets or sets an activity that is set as current for the process whose execution caused the error. If [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null), the current activity is unchanged. [Previous WorkflowCommand](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowCommand/) [Next WorkflowRuntime](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime/WorkflowRuntime/)