# Class SchemeNotValidException OptimaJet.Workflow.Core.Fault.SchemeNotValidException Represents an exception that is thrown when a workflow scheme is not valid. Namespace: [OptimaJet.Workflow.Core.Fault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/) ```csharp public class SchemeNotValidException : Exception, ISerializable ``` ## Type Hierarchy - [Exception](https://learn.microsoft.com/dotnet/api/system.exception) - SchemeNotValidException Current type - Implemented interfaces - [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable) ## Constructors `public SchemeNotValidException(string msg)` Initializes a new instance of the [SchemeNotValidException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/SchemeNotValidException/) class with the specified error message. ### Parameters | Name | Type | Description | | --- | --- | --- | | `msg` | `String` | The error message that explains why the scheme is invalid. | [Previous SchemeNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/SchemeNotFoundException/) [Next SelfRestoreConcurrencyException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/SelfRestoreConcurrencyException/)