1#ifndef SOURCEMETA_CORE_JSONPOINTER_ERROR_H_
2#define SOURCEMETA_CORE_JSONPOINTER_ERROR_H_
4#ifndef SOURCEMETA_CORE_JSONPOINTER_EXPORT
5#include <sourcemeta/core/jsonpointer_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 Pointer"}, 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
PointerParseError(const std::uint64_t column) noexcept
Create a parsing error.
Definition jsonpointer_error.h:21
auto column() const noexcept -> std::uint64_t
Get the column number of the error.
Definition jsonpointer_error.h:25