using System; using System.Collections; using System.Collections.Generic; using Newtonsoft.Json.Linq; namespace Babushka.scripts.CSharp.GameEntity.LoadSave; public class MalformedJsonException(JObject actualJson, string key, string problem) : Exception { public override string Message => $"JsonObject was malformed: {key} {problem}"; public override IDictionary Data => new Dictionary { { "json", actualJson } }; }