using System; namespace DPumpHydr.WinFrmUI.WenSkin.Json.Serialization { /// /// Provides information surrounding an error. /// public class ErrorContext { internal bool Traced { get; set; } /// /// Gets the error. /// /// The error. public Exception Error { get; private set; } /// /// Gets the original object that caused the error. /// /// The original object that caused the error. public object OriginalObject { get; private set; } /// /// Gets the member that caused the error. /// /// The member that caused the error. public object Member { get; private set; } /// /// Gets the path of the JSON location where the error occurred. /// /// The path of the JSON location where the error occurred. public string Path { get; private set; } /// /// Gets or sets a value indicating whether this is handled. /// /// true if handled; otherwise, false. public bool Handled { get; set; } internal ErrorContext(object originalObject, object member, string path, Exception error) { OriginalObject = originalObject; Member = member; Error = error; Path = path; } } }