using System; using DPumpHydr.WinFrmUI.WenSkin.Json.Utilities; namespace DPumpHydr.WinFrmUI.WenSkin.Json.Schema { /// /// /// Returns detailed information related to the . /// /// /// JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details. /// /// [Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")] public class ValidationEventArgs : EventArgs { private readonly JsonSchemaException _ex; /// /// Gets the associated with the validation error. /// /// The JsonSchemaException associated with the validation error. public JsonSchemaException Exception => _ex; /// /// Gets the path of the JSON location where the validation error occurred. /// /// The path of the JSON location where the validation error occurred. public string Path => _ex.Path; /// /// Gets the text description corresponding to the validation error. /// /// The text description. public string Message => _ex.Message; internal ValidationEventArgs(JsonSchemaException ex) { ValidationUtils.ArgumentNotNull(ex, "ex"); _ex = ex; } } }