ErrorContext
Provides information surrounding an error.
using System;
using System.Runtime.CompilerServices;
namespace Newtonsoft.Json.Serialization
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class ErrorContext
{
internal bool Traced { get; set; }
public Exception Error { get; }
[System.Runtime.CompilerServices.Nullable(2)]
[field: System.Runtime.CompilerServices.Nullable(2)]
public object OriginalObject {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
}
[System.Runtime.CompilerServices.Nullable(2)]
[field: System.Runtime.CompilerServices.Nullable(2)]
public object Member {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
}
public string Path { get; }
public bool Handled { get; set; }
internal ErrorContext([System.Runtime.CompilerServices.Nullable(2)] object originalObject, [System.Runtime.CompilerServices.Nullable(2)] object member, string path, Exception error)
{
OriginalObject = originalObject;
Member = member;
Error = error;
Path = path;
}
}
}