# Class Error OptimaJet.Workflow.Api.Models.Error Error. Namespace: [OptimaJet.Workflow.Api.Models](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/) ```csharp public record Error : IEquatable ``` ## Type Hierarchy - Error Current type - Implemented interfaces - [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1) ## Constructors ### `[JsonConstructor] [JsonConstructor] public Error(string message, ErrorCode code = ErrorCode.Unknown)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `message` | `String` | | | `code` | `ErrorCode` | | ## Properties ### `[JsonConverter(typeof(StringEnumConverter))] [JsonConverter(typeof(JsonStringEnumConverter))] public ErrorCode Code { get; init; }` Gets the code value. ### `public string Message { get; init; }` Gets the message value. ### `[JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public Dictionary? Errors { get; init; }` Gets the errors value. [Previous Direction](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/Direction/) [Next ErrorCode](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Models/ErrorCode/)