47 :
public std::exception {
50 sourcemeta::core::Pointer location,
51 sourcemeta::core::Pointer other)
52 : identifier_{identifier}, location_(std::move(location)),
53 other_(std::move(other)) {}
55 [[nodiscard]]
auto what()
const noexcept ->
const char *
override {
56 return "Schema anchor already exists";
59 [[nodiscard]]
auto identifier()
const noexcept -> std::string_view {
60 return this->identifier_;
63 [[nodiscard]]
auto location()
const noexcept
64 ->
const sourcemeta::core::Pointer & {
65 return this->location_;
68 [[nodiscard]]
auto other()
const noexcept
69 ->
const sourcemeta::core::Pointer & {
74 std::string identifier_;
75 sourcemeta::core::Pointer location_;
76 sourcemeta::core::Pointer other_;