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

Class internal_error

include/covscript/core/components.hpp:143–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 };
142
143 class internal_error final : public std::exception {
144 std::string mWhat = "Internal Error";
145
146 public:
147 internal_error() = default;
148
149 explicit internal_error(const std::string &str) noexcept : mWhat("Internal Error: " + str) {}
150
151 internal_error(const internal_error &) = default;
152
153 internal_error(internal_error &&) noexcept = default;
154
155 ~internal_error() override = default;
156
157 internal_error &operator=(const internal_error &) = default;
158
159 internal_error &operator=(internal_error &&) = default;
160
161 const char *what() const noexcept override
162 {
163 return this->mWhat.c_str();
164 }
165 };
166
167 class lang_error final {
168 std::string mWhat;

Callers 9

trim_exprMethod · 0.85
preprocessMethod · 0.85
translateMethod · 0.85
resumeFunction · 0.85
global_ctx_holderMethod · 0.85
resumeFunction · 0.85
parse_exprMethod · 0.85
check_declar_varMethod · 0.85
check_define_varMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected