1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-02-05 13:38:33 +00:00

Extra constructor for own msg

This commit is contained in:
Nikolas Garofil 2010-11-15 17:59:53 +01:00
parent 5a41152dbb
commit fd9dd921a4

View File

@ -38,11 +38,13 @@
class fork_throw : public std::runtime_error {
public:
fork_throw() : std::runtime_error("Fork happened") {}
fork_throw(const std::string &msg) : std::runtime_error(msg) {}
};
class unknown_arg_throw : public std::runtime_error {
public:
unknown_arg_throw() : std::runtime_error("Unknown argumunt given") {}
unknown_arg_throw(const std::string &msg) : std::runtime_error(msg) {}
};
void clean_up(void *memtofree1, void* memtofree2);