mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-03-21 17:34:28 -05:00
11 lines
457 B
C#
11 lines
457 B
C#
using System.Net;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace TableturfBattleServer;
|
|
public readonly struct Error(HttpStatusCode httpStatusCode, string code, string description) {
|
|
[JsonIgnore]
|
|
public HttpStatusCode HttpStatusCode { get; } = httpStatusCode;
|
|
public string Code { get; } = code ?? throw new ArgumentNullException(nameof(code));
|
|
public string Description { get; } = description ?? throw new ArgumentNullException(nameof(description));
|
|
}
|