All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.at.asitplus.jsonpath.implementation.AntlrJsonPathCompilerException.kt Maven / Gradle / Ivy

Go to download

Kotlin Multiplatform library for using Json Paths as specified in [RFC9535](https://datatracker.ietf.org/doc/rfc9535/)

The newest version!
package at.asitplus.jsonpath.implementation

import at.asitplus.jsonpath.core.JsonPathCompilerException
import at.asitplus.jsonpath.core.JsonPathQueryException
import at.asitplus.jsonpath.core.Rfc9535Utils
import kotlinx.serialization.json.JsonObject

/**
 * specification: https://datatracker.ietf.org/doc/rfc9535/
 * date: 2024-02
 */
internal class JsonPathLexerException : JsonPathCompilerException(
    "Lexer errors have occured. See the output of the error listener for more details"
)

internal class JsonPathParserException : JsonPathCompilerException(
    "Parser errors have occured. See the output of the error listener for more details"
)

internal class JsonPathTypeCheckerException(message: String) : JsonPathCompilerException(message)

internal class MissingKeyException(jsonObject: JsonObject, key: String) : JsonPathQueryException(
    "Missing key ${Rfc9535Utils.escapeToDoubleQuoted(key)} at object ${
        Rfc9535Utils.escapeToDoubleQuoted(
            jsonObject.toString()
        )
    }"
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy