summaryrefslogtreecommitdiff
path: root/include/exception.h
blob: cf799cf5bdacffbfc1e0373dbca055bd8cda0017 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef NEWSBOAT_EXCEPTION_H_
#define NEWSBOAT_EXCEPTION_H_

#include <exception>

namespace newsboat {

class Exception : public std::exception {
public:
	explicit Exception(unsigned int error_code = 0);
	~Exception() throw() override;
	const char* what() const throw() override;

private:
	unsigned int ecode;
};

} // namespace newsboat

#endif /* NEWSBOAT_EXCEPTION_H_ */