Package io.trino.json
Class PathEvaluationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.trino.spi.TrinoException
io.trino.json.PathEvaluationException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPathEvaluationException(String message) PathEvaluationException(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic TrinoExceptionitemTypeError(String expected, String actual) static TrinoExceptionstructuralError(String format, Object... arguments) An exception resulting from a structural error during JSON path evaluation.Methods inherited from class io.trino.spi.TrinoException
getErrorCode, getLocation, getMessage, getRawMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PathEvaluationException
-
PathEvaluationException
-
-
Method Details
-
structuralError
An exception resulting from a structural error during JSON path evaluation.A structural error occurs when the JSON path expression attempts to access a non-existent element of a JSON array or a non-existent member of a JSON object.
Note: in `lax` mode, the structural errors are suppressed, and the erroneous subexpression is evaluated to an empty sequence. In `strict` mode, the structural errors are propagated to the enclosing function (i.e. the function within which the path is evaluated, e.g. `JSON_EXISTS`), and there they are handled accordingly to the chosen `ON ERROR` option. Non-structural errors (e.g. numeric exceptions) are not suppressed in `lax` or `strict` mode.
-
itemTypeError
-