aboutsummaryrefslogtreecommitdiff
path: root/src/qalculate_exception.cpp
blob: db38fa3aa06977adb3027451368a72e6dc5719d0 (plain) (blame)
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;
}