Spaces:
Runtime error
Runtime error
File size: 383 Bytes
8df6da4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#ifndef EXCEPTION_HH
#define EXCEPTION_HH
#include <exception>
class errno_exception : public std::exception {
public:
explicit errno_exception(int err_no);
int errno() const;
virtual const char *what();
private:
int _errno;
char _buf[1000];
};
int try_main(int (*main)(int argc, char** argv), int argc, char** argv,
int ret_on_exception = 127);
#endif
|