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>
8#include <sourcemeta/core/error.h>
12namespace sourcemeta::core {
14SOURCEMETA_CORE_ERROR_WARNINGS_PUSH
22 :
Error{
"The input is not a valid JSON Path query"}, column_{column} {}
25 [[nodiscard]]
auto column() const noexcept -> std::uint64_t {
30 std::uint64_t column_;
33SOURCEMETA_CORE_ERROR_WARNINGS_POP
Error(const StaticString message) noexcept
Construct the error given its message.
Definition error_base.h:84
auto column() const noexcept -> std::uint64_t
Get the column number of the error.
Definition jsonpath_error.h:25
JSONPathParseError(const std::uint64_t column) noexcept
Construct an error given the column number where parsing failed.
Definition jsonpath_error.h:21