summaryrefslogtreecommitdiff
path: root/lib/Task.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-27 10:52:05 +0000
committerPixel <Pixel>2001-11-27 10:52:05 +0000
commit29f8cedf68c5e45ca20078a2a34a07875d7dea5b (patch)
treea9c5a77cc19d8addc8e79166c2c62f5d7f3b0bde /lib/Task.cc
parent3baa9d168c02a8734b95d1cc467601b6aaf2f6e4 (diff)
HelloJava removed
Diffstat (limited to 'lib/Task.cc')
-rw-r--r--lib/Task.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Task.cc b/lib/Task.cc
index 9ed1589..60a9872 100644
--- a/lib/Task.cc
+++ b/lib/Task.cc
@@ -17,16 +17,20 @@ int Task::Do() throw (GeneralException) {
}
int Task::Run() {
+ cerr << "==== Task: \"" << GetName() << "\" running.\n";
try {
state = Do();
}
catch (TaskSwitch) {
+ cerr << "==== Task: \"" << GetName() << "\" caugh a task switch. returning " << (state == TASK_ON_HOLD ? "TASK_ON_HOLD" : "TASK_DONE") << endl;
return state;
}
catch (GeneralException e) {
+ cerr << "Task " << GetName() << " caused an unexpected exception. Terminating.\n";
return TASK_DONE;
}
+ cerr << "==== Task: \"" << GetName() << "\" exitted. returning " << (state == TASK_ON_HOLD ? "TASK_ON_HOLD" : "TASK_DONE") << endl;
return state;
}