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