# Class ActorNotFoundException OptimaJet.Workflow.Core.Fault.ActorNotFoundException Represents an exception thrown when an actor cannot be found in a workflow scheme. Namespace: [OptimaJet.Workflow.Core.Fault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/) ```csharp public class ActorNotFoundException : Exception, ISerializable ``` ## Type Hierarchy - [Exception](https://learn.microsoft.com/dotnet/api/system.exception) - ActorNotFoundException Current type - Implemented interfaces - [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable) ## Constructors `public ActorNotFoundException(string message)` Initializes a new instance of the [ActorNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ActorNotFoundException/) class with a custom error message. ### Parameters | Name | Type | Description | | --- | --- | --- | | `message` | `String` | The message that explains why the exception was thrown. | `public ActorNotFoundException(string actorName, string schemeCode)` Initializes a new instance of the [ActorNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ActorNotFoundException/) class for a missing actor name in a specific workflow scheme. ### Parameters | Name | Type | Description | | --- | --- | --- | | `actorName` | `String` | The name of the actor that was not found. | | `schemeCode` | `String` | The workflow scheme code that was searched. | [Previous ActorAlreadyExistsException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ActorAlreadyExistsException/) [Next ArgumentExceptionMessages](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ArgumentExceptionMessages/)