Class JsonPathException
Reports that a JSON path did not resolve against a parsed document. The message names the path and the reason; a protocol read wraps it in its own assertion exception, which adds the subject the read was made against.
public sealed class JsonPathException : ProtoAssertionException, ISerializable
- Inheritance
-
JsonPathException
- Implements
- Inherited Members
- Extension Methods
Constructors
JsonPathException(string, string)
public JsonPathException(string path, string reason)
Parameters
Properties
Path
The path that failed, with the $.member prefix the resolver normalised.
public string Path { get; }
Property Value
Reason
The reason the path did not resolve, without the path.
public string Reason { get; }