-
Notifications
You must be signed in to change notification settings - Fork 0
/
Exception.hh
49 lines (37 loc) · 1.01 KB
/
Exception.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef EXCEPTION_HH_
#define EXCEPTION_HH_
#include <string>
class errExcept : public std::exception
{
protected:
std::string _message;
std::string _component;
public:
errExcept(std::string const &message, std::string const &component = "Unknown");
~errExcept() throw();
virtual std::string const &getComponent() const;
const char* what() const throw();
};
class errGraphic : public std::exception
{
protected:
std::string _message;
std::string _component;
public:
errGraphic(std::string const &message, std::string const &component = "Unknown");
~errGraphic() throw();
virtual std::string const &getComponent() const;
const char* what() const throw();
};
class errAbort : public std::exception
{
protected:
std::string _message;
std::string _component;
public:
errAbort(std::string const &message, std::string const &component = "Unknown");
~errAbort() throw();
virtual std::string const &getComponent() const;
const char* what() const throw();
};
#endif