4 |
#include <stdexcept> |
#include <stdexcept> |
5 |
|
|
6 |
|
|
7 |
class filenotfoundexception : std::runtime_error |
class filenotfoundexception : public std::runtime_error |
8 |
{ |
{ |
9 |
public: |
public: |
10 |
filenotfoundexception() : runtime_error("") {} |
filenotfoundexception() : runtime_error("") {} |
11 |
}; |
}; |
12 |
|
|
13 |
|
|
14 |
|
class smsnotfoundexception : public std::runtime_error |
15 |
|
{ |
16 |
|
public: |
17 |
|
smsnotfoundexception() : runtime_error("") {} |
18 |
|
}; |
19 |
|
|
20 |
|
class httpexception : public std::runtime_error |
21 |
|
{ |
22 |
|
public: |
23 |
|
httpexception(const char* msg) : runtime_error(msg) {} |
24 |
|
}; |
25 |
|
|
26 |
|
|
27 |
#endif //__EXCEPTIONS_H__ |
#endif //__EXCEPTIONS_H__ |