Class Error
OptimaJet.Workflow.Api.Models.Error
Error.
Namespace: OptimaJet.Workflow.Api.Models
public record Error : IEquatable<Error>Type Hierarchy
- Error Current type
- Implemented interfaces
Constructors
[JsonConstructor] [JsonConstructor] public Error(string message, ErrorCode code = ErrorCode.Unknown) #Parameters
Name
Type
Description
messageStringcodeErrorCodeProperties
[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<string, string[]>? Errors { get; init; } #Gets the errors value.