5 #ifndef CROFLEXCEPTION_H
6 #define CROFLEXCEPTION_H
30 std::runtime_error(__arg) {};
35 os <<
"<RoflException: " << e.what() <<
" >";
42 eSysCall(std::string
const& syscall = std::string(
"unknown")) :
43 RoflException(
"syscall: "+syscall+
" "+std::string(__FILE__)+std::string(
":")+std::string(__func__)),
44 n_err(errno), s_err(strerror(errno)) {};
47 friend std::ostream& operator<< (std::ostream& os,
eSysCall const& e) {
48 os <<
"<eSysCall syscall:" << e.what() <<
" errno: " << e.n_err <<
" (" << e.s_err <<
") >";
60 const std::string& __arg = std::string(
"eNotImplemented")) :
68 const std::string& __arg = std::string(
"eInval")) :
70 virtual ~
eInval()
throw() {};
76 const std::string& __arg = std::string(
"eBadVersion")) :
79 std::cerr <<
"BAD-WOLF" << std::endl;
88 const std::string& __arg = std::string(
"eBadSyntax")) :
95 const std::string& __arg = std::string(
"eBadSyntaxTooShort")) :
Definition: croflexception.h:73
Definition: croflexception.h:57
Definition: croflexception.h:65
Definition: croflexception.h:40
Definition: croflexception.h:85
Definition: croflexception.h:92
Definition: croflexception.h:27