QueryWarning

Something in a compiled query or filter that is valid RFC 9535 but almost certainly not what was meant: a match or search whose pattern is a literal that makes the function false for every value, such as '(?i)abc', which isn't I-Regexp (SPEC.md §10.1). The query still compiles and runs as RFC 9535 says it must; the warning only says that its result can't be the one wanted. JsonPath.warnings and DocumentFilter.warnings hold them.

Two warnings are equal when their offset, length and reason are.

Properties

Link copied to clipboard
val length: Int

The characters the problem spans from offset, for an editor to underline.

Link copied to clipboard
val offset: Int

The character offset of the problem in the text of the query or filter.

Link copied to clipboard

What is wrong and what it means for the result, without the text and the offset.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String