JsonPathLimitExceededException

An evaluation cost more than JsonPathLimits allowed, and was abandoned.

Nothing was returned and nothing is partial. A caller that catches this has no nodelist, which is the point: the alternative — a short answer — cannot be told apart from a document that genuinely holds fewer nodes.

Distinct and catchable so that "this query is too expensive" can be answered differently from "this query is malformed" (IllegalArgumentException, from compile) and from "this document will not decode" (VariantFormatException). A caller serving untrusted expressions needs all three to be separable, and separating them by message is not separating them.

It extends RuntimeException directly rather than joining a module exception hierarchy, because there is not one: rabosh-jsonpath reads no files and writes none, so it has no corruption, no format version and no state — the three things that make the other modules' sealed hierarchies worth having.

Properties

Link copied to clipboard

the value of that bound.

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

which bound was hit.

Link copied to clipboard
open val message: String?