# Class CommandAlreadyExistsException OptimaJet.Workflow.Core.Fault.CommandAlreadyExistsException Represents an error that occurs when a command with the same name already exists in a scheme. Namespace: [OptimaJet.Workflow.Core.Fault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/) ```csharp public class CommandAlreadyExistsException : Exception, ISerializable ``` ## Type Hierarchy - [Exception](https://learn.microsoft.com/dotnet/api/system.exception) - CommandAlreadyExistsException Current type - Implemented interfaces - [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable) ## Constructors `public CommandAlreadyExistsException(string commandName, string schemeCode)` Initializes a new instance of the [CommandAlreadyExistsException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/CommandAlreadyExistsException/) class for the specified command name and scheme code. ### Parameters | Name | Type | Description | | --- | --- | --- | | `commandName` | `String` | The command name that already exists. | | `schemeCode` | `String` | The scheme code in which the duplicate command was detected. | [Previous ColumnNotExistsException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ColumnNotExistsException/) [Next CommandNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/CommandNotFoundException/)