mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-03-22 09:54:19 -05:00
21 lines
553 B
C#
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));
|
|
}
|
|
}
|