public static EError SetData(this EError error, string key, JToken value) { if (error == null) { throw new ArgumentNullException(nameof(error)); } error.Data[key] = value; return(error); }
public static EError SetName(this EError error, string value) { return(error.SetData("Name", value)); }