TableturfBattleApp/TableturfBattleServer/Error.cs
2022-10-01 16:00:50 +10:00

21 lines
553 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace TableturfBattleServer;
public struct Error {
[JsonProperty("code")]
public string Code { get; }
[JsonProperty("description")]
public string Description { get; }
public Error(string code, string description) {
this.Code = code ?? throw new ArgumentNullException(nameof(code));
this.Description = description ?? throw new ArgumentNullException(nameof(description));
}
}