mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 17:22:21 +00:00
12 lines
402 B
C#
12 lines
402 B
C#
public record Error(string Code, string Name)
|
|
{
|
|
/// <summary>
|
|
/// Represents a common error for null values.
|
|
/// </summary>
|
|
public static Error NullValue = new("Error.NullValue", "Null value was provided");
|
|
|
|
/// <summary>
|
|
/// Represents a default error with an empty code and name.
|
|
/// </summary>
|
|
public static Error None => new(string.Empty, string.Empty);
|
|
} |