1 2 3 4 5 6 7 8 9 10 11 12
//SPDX-License-Identifier: GPL-3.0 #include <qalculate_exception.h> #include <string> 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; }