aboutsummaryrefslogtreecommitdiff
path: root/src/exception.cpp
blob: 73d6fa9ba40a30af12563606bf511110300c2afb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "exception.h"

#include <cstring>

namespace newsboat {

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

Exception::~Exception() throw() {}

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

} // namespace newsboat