1#ifndef SOURCEMETA_CORE_JSONPATH_ERROR_H_
2#define SOURCEMETA_CORE_JSONPATH_ERROR_H_
4#ifndef SOURCEMETA_CORE_JSONPATH_EXPORT
5#include <sourcemeta/core/jsonpath_export.h>
11namespace sourcemeta::core {
17#pragma warning(disable : 4251 4275)
23 :
public std::exception {
28 [[nodiscard]]
auto what() const noexcept -> const
char *
override {
29 return "The input is not a valid JSON Path query";
33 [[nodiscard]]
auto column() const noexcept -> std::uint64_t {
38 std::uint64_t column_;
42#pragma warning(default : 4251 4275)
auto column() const noexcept -> std::uint64_t
Get the column number of the error.
Definition jsonpath_error.h:33
JSONPathParseError(const std::uint64_t column)
Construct an error given the column number where parsing failed.
Definition jsonpath_error.h:26