# Class ProcessExecutionException OptimaJet.Workflow.Core.Fault.ProcessExecutionException Represents an exception that occurs during workflow process execution. Namespace: [OptimaJet.Workflow.Core.Fault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/) ```csharp public class ProcessExecutionException : Exception, ISerializable ``` ## Type Hierarchy - [Exception](https://learn.microsoft.com/dotnet/api/system.exception) - ProcessExecutionException Current type - Implemented interfaces - [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable) ## Constructors `public ProcessExecutionException(string message, Exception innerException, bool processStatusWasCorrectlySet)` Initializes a new instance of the [ProcessExecutionException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ProcessExecutionException/) class. ### Parameters | Name | Type | Description | | --- | --- | --- | | `message` | `String` | The message that describes the error. | | `innerException` | `Exception` | The exception that caused this exception. | | `processStatusWasCorrectlySet` | `Boolean` | [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) if the process status was correctly updated before this exception is raised; otherwise, [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). | ## Properties `public bool ProcessStatusWasCorrectlySet { get; }` Gets a value indicating whether the process status was already correctly updated before this exception was created. [Previous ProcessAlreadyExistsException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ProcessAlreadyExistsException/) [Next ProcessNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ProcessNotFoundException/)