BlockIP
ExceptionBlockIP.h
Go to the documentation of this file.
1 
6 #ifndef EXCEPTIONBLOCKIP_H
7 #define EXCEPTIONBLOCKIP_H
8 
9 #include <exception>
10 #include <string>
11 
12 using namespace std;
13 
23 
25 class ExceptionBlockIP : public exception {
26  public:
28  string file;
29  int line;
30  string message;
31  ExceptionBlockIP(TYPE_ERROR error) throw();
32  ExceptionBlockIP(TYPE_ERROR error, string file) throw();
33  ExceptionBlockIP(TYPE_ERROR error, string file, int line) throw();
34  ~ExceptionBlockIP() throw();
35  const char* what() const throw();
36  private:
37  void setMessage();
38 };
39 
40 #endif //EXCEPTIONBLOCKIP_H