Class JsonPathException

Namespace
ProtoTest.Json
Assembly
ProtoTest.Json.dll

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

path string
reason string

Properties

Path

The path that failed, with the $.member prefix the resolver normalised.

public string Path { get; }

Property Value

string

Reason

The reason the path did not resolve, without the path.

public string Reason { get; }

Property Value

string