MCPcopy Create free account
hub / github.com/covscript/covscript / lang_error

Class lang_error

include/covscript/core/components.hpp:167–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 };
166
167 class lang_error final {
168 std::string mWhat;
169
170 public:
171 lang_error() = default;
172
173 explicit lang_error(std::string str) noexcept : mWhat(std::move(str)) {}
174
175 lang_error(const lang_error &) = default;
176
177 lang_error(lang_error &&) noexcept = default;
178
179 ~lang_error() = default;
180
181 lang_error &operator=(const lang_error &) = default;
182
183 lang_error &operator=(lang_error &&) = default;
184
185 const char *what() const noexcept
186 {
187 return this->mWhat.c_str();
188 }
189 };
190
191 class fatal_error final : public std::exception {
192 std::string mWhat = "Fatal Error";

Callers 15

parse_numberFunction · 0.85
return_valueMethod · 0.85
resumeFunction · 0.85
yieldFunction · 0.85
return_valueMethod · 0.85
resumeFunction · 0.85
yieldFunction · 0.85
frontFunction · 0.85
backFunction · 0.85
to_hash_mapFunction · 0.85
from_asciiFunction · 0.85
fstreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected