summaryrefslogtreecommitdiff
path: root/server/src/templateparser.cc
diff options
context:
space:
mode:
authordeva <deva>2008-06-04 08:16:12 +0000
committerdeva <deva>2008-06-04 08:16:12 +0000
commit39bd5c058ea842db10fc56ee153ec338e0d24f0f (patch)
treeee5acf43b7bc2c00908ed8715fbfc74cdb0ea15d /server/src/templateparser.cc
parent0febf6ea9cbd1a6e04e41339fc46d2e6b07da5e7 (diff)
Introduced the errorbox to communicate server errors to the client.
Diffstat (limited to 'server/src/templateparser.cc')
-rw-r--r--server/src/templateparser.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/templateparser.cc b/server/src/templateparser.cc
index 04650ca..c67ba63 100644
--- a/server/src/templateparser.cc
+++ b/server/src/templateparser.cc
@@ -45,6 +45,8 @@
#include <errno.h>
+#include "exception.h"
+
void TemplateParser::error(const char* fmt, ...)
{
// TODO: Throw exception here.
@@ -57,6 +59,8 @@ void TemplateParser::error(const char* fmt, ...)
va_end(argp);
fprintf(stderr, "\n");
+
+ throw Exception("Error in TemplateParser");
}
TemplateParser::TemplateParser(std::string course)