27class SOURCEMETA_BLAZE_CODEGEN_EXPORT CodegenUnsupportedKeywordError
28 :
public std::exception {
30 CodegenUnsupportedKeywordError(sourcemeta::core::JSON json,
31 sourcemeta::core::Pointer pointer,
32 std::string keyword,
const char *message)
33 : json_{std::move(json)}, pointer_{std::move(pointer)},
34 keyword_{std::move(keyword)}, message_{message} {}
35 CodegenUnsupportedKeywordError(sourcemeta::core::JSON json,
36 const sourcemeta::core::WeakPointer &pointer,
37 std::string keyword,
const char *message)
38 : CodegenUnsupportedKeywordError{std::move(json),
39 sourcemeta::core::to_pointer(pointer),
40 std::move(keyword), message} {}
41 CodegenUnsupportedKeywordError(sourcemeta::core::JSON json,
42 sourcemeta::core::Pointer pointer,
44 std::string message) =
delete;
45 CodegenUnsupportedKeywordError(sourcemeta::core::JSON json,
46 sourcemeta::core::Pointer pointer,
48 std::string &&message) =
delete;
49 CodegenUnsupportedKeywordError(sourcemeta::core::JSON json,
50 sourcemeta::core::Pointer pointer,
52 std::string_view message) =
delete;
54 [[nodiscard]]
auto what()
const noexcept ->
const char *
override {
55 return this->message_;
58 [[nodiscard]]
auto json()
const noexcept ->
const sourcemeta::core::JSON & {
62 [[nodiscard]]
auto pointer()
const noexcept
63 ->
const sourcemeta::core::Pointer & {
64 return this->pointer_;
67 [[nodiscard]]
auto keyword()
const noexcept -> std::string_view {
68 return this->keyword_;
72 sourcemeta::core::JSON json_;
73 sourcemeta::core::Pointer pointer_;
80class SOURCEMETA_BLAZE_CODEGEN_EXPORT CodegenUnsupportedKeywordValueError
81 :
public std::exception {
83 CodegenUnsupportedKeywordValueError(sourcemeta::core::JSON json,
84 sourcemeta::core::Pointer pointer,
85 std::string keyword,
const char *message)
86 : json_{std::move(json)}, pointer_{std::move(pointer)},
87 keyword_{std::move(keyword)}, message_{message} {}
88 CodegenUnsupportedKeywordValueError(
89 sourcemeta::core::JSON json,
const sourcemeta::core::WeakPointer &pointer,
90 std::string keyword,
const char *message)
91 : CodegenUnsupportedKeywordValueError{
92 std::move(json), sourcemeta::core::to_pointer(pointer),
93 std::move(keyword), message} {}
94 CodegenUnsupportedKeywordValueError(sourcemeta::core::JSON json,
95 sourcemeta::core::Pointer pointer,
97 std::string message) =
delete;
98 CodegenUnsupportedKeywordValueError(sourcemeta::core::JSON json,
99 sourcemeta::core::Pointer pointer,
101 std::string &&message) =
delete;
102 CodegenUnsupportedKeywordValueError(sourcemeta::core::JSON json,
103 sourcemeta::core::Pointer pointer,
105 std::string_view message) =
delete;
107 [[nodiscard]]
auto what()
const noexcept ->
const char *
override {
108 return this->message_;
111 [[nodiscard]]
auto json()
const noexcept ->
const sourcemeta::core::JSON & {
115 [[nodiscard]]
auto pointer()
const noexcept
116 ->
const sourcemeta::core::Pointer & {
117 return this->pointer_;
120 [[nodiscard]]
auto keyword()
const noexcept -> std::string_view {
121 return this->keyword_;
125 sourcemeta::core::JSON json_;
126 sourcemeta::core::Pointer pointer_;
127 std::string keyword_;
128 const char *message_;
133class SOURCEMETA_BLAZE_CODEGEN_EXPORT CodegenUnexpectedSchemaError
134 :
public std::exception {
136 CodegenUnexpectedSchemaError(sourcemeta::core::JSON json,
137 sourcemeta::core::Pointer pointer,
139 : json_{std::move(json)}, pointer_{std::move(pointer)},
141 CodegenUnexpectedSchemaError(sourcemeta::core::JSON json,
142 const sourcemeta::core::WeakPointer &pointer,
144 : CodegenUnexpectedSchemaError{
145 std::move(json), sourcemeta::core::to_pointer(pointer), message} {}
146 CodegenUnexpectedSchemaError(sourcemeta::core::JSON json,
147 sourcemeta::core::Pointer pointer,
148 std::string message) =
delete;
149 CodegenUnexpectedSchemaError(sourcemeta::core::JSON json,
150 sourcemeta::core::Pointer pointer,
151 std::string &&message) =
delete;
152 CodegenUnexpectedSchemaError(sourcemeta::core::JSON json,
153 sourcemeta::core::Pointer pointer,
154 std::string_view message) =
delete;
156 [[nodiscard]]
auto what()
const noexcept ->
const char *
override {
157 return this->message_;
160 [[nodiscard]]
auto json()
const noexcept ->
const sourcemeta::core::JSON & {
164 [[nodiscard]]
auto pointer()
const noexcept
165 ->
const sourcemeta::core::Pointer & {
166 return this->pointer_;
170 sourcemeta::core::JSON json_;
171 sourcemeta::core::Pointer pointer_;
172 const char *message_;