mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-08-23 03:14:03 -05:00
Initial commit
This commit is contained in:
20
TableturfBattleServer/Error.cs
Normal file
20
TableturfBattleServer/Error.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user