//SPDX-License-Identifier: GPL-3.0 #include #include qalculate_exception::qalculate_exception(int code) : std::runtime_error(std::to_string(code).c_str()), code(code) { } int qalculate_exception::getCode() const { return this->code; }