summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Exceptions.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc
index 3be7c65..a647f16 100644
--- a/lib/Exceptions.cc
+++ b/lib/Exceptions.cc
@@ -21,17 +21,17 @@ char GeneralException::t[BUFSIZ];
GeneralException::GeneralException(String emsg) : msg(emsg.strdup()) {
#ifdef DEBUG
- cerr << _("Generating a General Exception error: '") << msg << "'.\n";
+ std::cerr << _("Generating a General Exception error: '") << msg << "'.\n";
#endif
}
GeneralException::GeneralException() : msg(0) {
#ifdef DEBUG
- cerr << _("Generating a General Exception error: '") << msg << "'.\n";
+ std::cerr << _("Generating a General Exception error: '") << msg << "'.\n";
#endif
}
GeneralException::GeneralException(const GeneralException & e) : msg(strdup(e.msg)) {
#ifdef DEBUG
- cerr << _("Generating a General Exception error: '") << msg << "'.\n";
+ std::cerr << _("Generating a General Exception error: '") << msg << "'.\n";
#endif
}
@@ -62,19 +62,19 @@ IOGeneral::IOGeneral() { }
IOAgain::IOAgain() : IOGeneral(_("No more bytes for reading or writing.")) {
#ifdef DEBUG
- cerr << "Generating an IOAgain exception: '" << GetMsg() << "'.\n";
+ std::cerr << "Generating an IOAgain exception: '" << GetMsg() << "'.\n";
#endif
}
TaskSwitch::TaskSwitch() : GeneralException(_("Switching task in a non-tasked environnement")) {
#ifdef DEBUG
- cerr << "Generating a TaskSwitch exception: '" << GetMsg() << "'.\n";
+ std::cerr << "Generating a TaskSwitch exception: '" << GetMsg() << "'.\n";
#endif
}
Exit::Exit(int a_code) : GeneralException(_("Exitting with code " + a_code)), code(a_code) {
#ifdef DEBUG
- cerr << "Generating an Exit exception: '" << GetMsg() << "'.\n";
+ std::cerr << "Generating an Exit exception: '" << GetMsg() << "'.\n";
#endif
}