Subversion Repositories tpanel

Rev

Rev 92 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 92 Rev 93
Line 23... Line 23...
23
 
23
 
24
using namespace std;
24
using namespace std;
25
 
25
 
26
TXceptBase::TXceptBase(const string& message, const string& categorie, const string& file, const int& iLine, bool bFatal)
26
TXceptBase::TXceptBase(const string& message, const string& categorie, const string& file, const int& iLine, bool bFatal)
27
        : mMessage(message),
27
        : mMessage(message),
-
 
28
          mCategory(categorie),
28
          mFile(file),
29
          mFile(file),
29
          mLine(iLine),
30
          mLine(iLine),
30
          mbFatal(bFatal)
31
          mbFatal(bFatal)
31
{
32
{
32
}
33
}
Line 66... Line 67...
66
}
67
}
67
 
68
 
68
TXceptNetwork::TXceptNetwork (const std::string& message, const std::string& file, int iLine, bool bFatal)
69
TXceptNetwork::TXceptNetwork (const std::string& message, const std::string& file, int iLine, bool bFatal)
69
    : TXceptBase(message, "Network error", file, iLine, bFatal)
70
    : TXceptBase(message, "Network error", file, iLine, bFatal)
70
{
71
{
-
 
72
    logIt();
71
}
73
}
72
 
74
 
73
TXceptNetwork::TXceptNetwork (const std::string &  file, int iLine, bool bFatal)
75
TXceptNetwork::TXceptNetwork (const std::string &  file, int iLine, bool bFatal)
74
: TXceptBase("", "Network error", file, iLine, bFatal)
76
: TXceptBase("", "Network error", file, iLine, bFatal)
75
{
77
{
-
 
78
    logIt();
76
}
79
}
77
 
80
 
78
TXceptComm::TXceptComm (const std::string& message, const std::string& file, int iLine, bool bFatal)
81
TXceptComm::TXceptComm (const std::string& message, const std::string& file, int iLine, bool bFatal)
79
: TXceptBase(message, "Controller communication error", file, iLine, bFatal)
82
: TXceptBase(message, "Controller communication error", file, iLine, bFatal)
80
{
83
{
-
 
84
    logIt();
81
}
85
}
82
 
86
 
83
TXceptComm::TXceptComm (const std::string &  file, int iLine, bool bFatal)
87
TXceptComm::TXceptComm (const std::string &  file, int iLine, bool bFatal)
84
: TXceptBase("", "Controller communication error", file, iLine, bFatal)
88
: TXceptBase("", "Controller communication error", file, iLine, bFatal)
85
{
89
{
-
 
90
    logIt();
86
}
91
}
87
 
92
 
88
TXceptFatal::TXceptFatal (const std::string& message, const std::string& file, int iLine, bool bFatal)
93
TXceptFatal::TXceptFatal (const std::string& message, const std::string& file, int iLine, bool bFatal)
89
: TXceptBase(message, "Fatal error", file, iLine, bFatal)
94
: TXceptBase(message, "Fatal error", file, iLine, bFatal)
90
{
95
{
-
 
96
    logIt();
-
 
97
    exit(1);
91
}
98
}
92
 
99
 
93
TXceptFatal::TXceptFatal (const std::string &  file, int iLine, bool bFatal)
100
TXceptFatal::TXceptFatal (const std::string &  file, int iLine, bool bFatal)
94
: TXceptBase("", "Fatal error", file, iLine, bFatal)
101
: TXceptBase("", "Fatal error", file, iLine, bFatal)
95
{
102
{
-
 
103
    logIt();
-
 
104
    exit(1);
96
}
105
}