public record Error(string Code, string Name) { /// /// Represents a common error for null values. /// public static Error NullValue = new("Error.NullValue", "Null value was provided"); /// /// Represents a default error with an empty code and name. /// public static Error None => new(string.Empty, string.Empty); }