# Class ImpossibleToSetStatusException OptimaJet.Workflow.Core.Fault.ImpossibleToSetStatusException Represents an exception thrown when a status cannot be set to the requested value. Namespace: [OptimaJet.Workflow.Core.Fault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/) ```csharp public class ImpossibleToSetStatusException : Exception, ISerializable ``` ## Type Hierarchy - [Exception](https://learn.microsoft.com/dotnet/api/system.exception) - ImpossibleToSetStatusException Current type - Implemented interfaces - [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable) ## Constructors `public ImpossibleToSetStatusException()` Initializes a new instance of the [ImpossibleToSetStatusException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ImpossibleToSetStatusException/) class. `public ImpossibleToSetStatusException(string message, Exception innerException)` Initializes a new instance of the [ImpossibleToSetStatusException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ImpossibleToSetStatusException/) class with a specified error message and a reference to the inner exception that caused it. ### Parameters | Name | Type | Description | | --- | --- | --- | | `message` | `String` | The message that explains why the status cannot be set. | | `innerException` | `Exception` | The exception that caused this exception. | `public ImpossibleToSetStatusException(string message)` Initializes a new instance of the [ImpossibleToSetStatusException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ImpossibleToSetStatusException/) class with a specified error message. ### Parameters | Name | Type | Description | | --- | --- | --- | | `message` | `String` | The message that explains why the status cannot be set. | [Previous ImpossibleToSetRuntimeStatusException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ImpossibleToSetRuntimeStatusException/) [Next ImpossibleToUpdateSchemeTagsException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ImpossibleToUpdateSchemeTagsException/)