Class ErrorContext
Provides information surrounding an error.
Inheritance
System.Object
ErrorContext
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Bayat.Json.Serialization
Assembly: Bayat.Json.Runtime.dll
Syntax
public class ErrorContext
Constructors
| Improve this Doc View SourceErrorContext(Object, Object, String, Exception)
Declaration
public ErrorContext(object originalObject, object member, string path, Exception error)
Parameters
Type | Name | Description |
---|---|---|
System.Object | originalObject | |
System.Object | member | |
System.String | path | |
System.Exception | error |
Properties
| Improve this Doc View SourceError
Gets the error.
Declaration
public Exception Error { get; }
Property Value
Type | Description |
---|---|
System.Exception | The error. |
Handled
Gets or sets a value indicating whether this ErrorContext is handled.
Declaration
public bool Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Member
Gets the member that caused the error.
Declaration
public object Member { get; }
Property Value
Type | Description |
---|---|
System.Object | The member that caused the error. |
OriginalObject
Gets the original object that caused the error.
Declaration
public object OriginalObject { get; }
Property Value
Type | Description |
---|---|
System.Object | The original object that caused the error. |
Path
Gets the path of the JSON location where the error occurred.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System.String | The path of the JSON location where the error occurred. |
Traced
Declaration
public bool Traced { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |