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

Class runtime_error

include/covscript/core/components.hpp:119–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 };
118
119 class runtime_error final : public std::exception {
120 std::string mWhat = "Runtime Error";
121
122 public:
123 runtime_error() = default;
124
125 explicit runtime_error(const std::string &str) noexcept : mWhat("Runtime Error: " + str) {}
126
127 runtime_error(const runtime_error &) = default;
128
129 runtime_error(runtime_error &&) noexcept = default;
130
131 ~runtime_error() override = default;
132
133 runtime_error &operator=(const runtime_error &) = default;
134
135 runtime_error &operator=(runtime_error &&) = default;
136
137 const char *what() const noexcept override
138 {
139 return this->mWhat.c_str();
140 }
141 };
142
143 class internal_error final : public std::exception {
144 std::string mWhat = "Internal Error";

Callers 15

add_funcMethod · 0.85
covscript_mainFunction · 0.85
rangeFunction · 0.85
trim_exprMethod · 0.85
local2wideFunction · 0.85
unix_fiber_stackMethod · 0.85
openFunction · 0.85
openFunction · 0.85
runtime.cppFile · 0.85
parse_dotMethod · 0.85
parse_newMethod · 0.85
parse_gcnewMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected