aboutsummaryrefslogtreecommitdiff
path: root/include/qalculate_exception.h
blob: c7e042b5a83d20d4ddf442029bee23c3b94936a7 (plain) (blame)
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;
};