# Class SchemeNotFoundException OptimaJet.Workflow.Core.Fault.SchemeNotFoundException Represents a missing workflow scheme for a specific lookup location. Namespace: [OptimaJet.Workflow.Core.Fault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/) ```csharp public class SchemeNotFoundException : Exception, ISerializable ``` ## Type Hierarchy - [Exception](https://learn.microsoft.com/dotnet/api/system.exception) - SchemeNotFoundException Current type - Implemented interfaces - [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable) ## Methods `public static SchemeNotFoundException Create(string code, SchemeLocation location)` Creates an exception for a missing scheme by code. ### Parameters | Name | Type | Description | | --- | --- | --- | | `code` | `String` | The code of the requested scheme. | | `location` | `SchemeLocation` | The location where the scheme lookup was performed. | ### Returns | Type | Description | | --- | --- | | `SchemeNotFoundException` | A new [SchemeNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/SchemeNotFoundException/) instance. | `public static SchemeNotFoundException Create(Guid id, SchemeLocation location)` Creates an exception for a missing scheme by identifier. ### Parameters | Name | Type | Description | | --- | --- | --- | | `id` | `Guid` | The identifier used for scheme lookup. For [SchemeLocation.WorkflowProcessInstance](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/SchemeLocation/), this value is the process instance identifier. | | `location` | `SchemeLocation` | The location where the scheme lookup was performed. | ### Returns | Type | Description | | --- | --- | | `SchemeNotFoundException` | A new [SchemeNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/SchemeNotFoundException/) instance. | [Previous SchemeLocation](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/SchemeLocation/) [Next SchemeNotValidException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/SchemeNotValidException/)