Run artifact

build/jq/jq_interpreter/errors.py

"""Errors crossing the interpreter's compile and execution boundaries."""


class CompileError(Exception):
    """Raised when jq source cannot be compiled."""


class RuntimeError(Exception):
    """Raised when evaluation fails after compilation."""

    def __init__(self, message: object = "error") -> None:
        self.value = message
        super().__init__(str(message))