summaryrefslogtreecommitdiff
path: root/src/exception.cpp
blob: 510dc4c0804e8b30c4bcf7ffde337b65174f8154 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <exception.h>
#include <cerrno>
#include <cstring>

using namespace newsbeuter;

exception::exception(unsigned int error_code) : ecode(error_code) { }

exception::~exception() throw() { }

const char * exception::what() const throw() {
	return std::strerror(ecode);
}