1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//SPDX-License-Identifier: GPL-3.0 #pragma once #include <stdexcept> class qalculate_exception : public std::runtime_error { protected: int code; qalculate_exception(int code); public: int getCode() const; };