Table of Contents

Class CodedError

Namespace
MRX.Core.Common.ModelBinding
Assembly
MRX.Core.Common.dll

Represents a single validation error with a machine-readable code alongside its human-readable description.

public record CodedError : IEquatable<CodedError>
Inheritance
CodedError
Implements
Inherited Members

Constructors

CodedError(string, string)

Represents a single validation error with a machine-readable code alongside its human-readable description.

public CodedError(string Code, string Description)

Parameters

Code string

The machine-readable error code, e.g. "InvalidValue".

Description string

The human-readable error message.

Properties

Code

The machine-readable error code, e.g. "InvalidValue".

public string Code { get; init; }

Property Value

string

Description

The human-readable error message.

public string Description { get; init; }

Property Value

string