# Class ActorAlreadyExistsException OptimaJet.Workflow.Core.Fault.ActorAlreadyExistsException Represents an exception that is thrown when a workflow scheme already contains an actor with the same name. Namespace: [OptimaJet.Workflow.Core.Fault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/) ```csharp public class ActorAlreadyExistsException : Exception, ISerializable ``` ## Type Hierarchy - [Exception](https://learn.microsoft.com/dotnet/api/system.exception) - ActorAlreadyExistsException Current type - Implemented interfaces - [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable) ## Constructors `public ActorAlreadyExistsException(string actorName, string schemeCode)` Initializes a new instance of the [ActorAlreadyExistsException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ActorAlreadyExistsException/) class for a duplicate actor name in the specified workflow scheme. ### Parameters | Name | Type | Description | | --- | --- | --- | | `actorName` | `String` | The actor name that already exists in the workflow scheme. | | `schemeCode` | `String` | The workflow scheme code in which the actor name already exists. | [Previous ActivityNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ActivityNotFoundException/) [Next ActorNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ActorNotFoundException/)