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
CodestringThe machine-readable error code, e.g. "InvalidValue".
DescriptionstringThe human-readable error message.
Properties
Code
The machine-readable error code, e.g. "InvalidValue".
public string Code { get; init; }
Property Value
Description
The human-readable error message.
public string Description { get; init; }