summaryrefslogtreecommitdiff
path: root/src/util/exception.h
diff options
context:
space:
mode:
authorDejan Jovanović <dejan.jovanovic@gmail.com>2010-05-04 03:42:56 +0000
committerDejan Jovanović <dejan.jovanovic@gmail.com>2010-05-04 03:42:56 +0000
commit1ce8e28d5976e1ab30099cb9e6943514497d2980 (patch)
tree1a9382fb62b38e3b5768da951b7c684f1b8688e7 /src/util/exception.h
parent69c2d3e702f8ec0bd0eec4a481a07571131aabeb (diff)
Type-checking classes and hooks (not tested yet).
Diffstat (limited to 'src/util/exception.h')
-rw-r--r--src/util/exception.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/exception.h b/src/util/exception.h
index 862597bae..48dcf1244 100644
--- a/src/util/exception.h
+++ b/src/util/exception.h
@@ -34,7 +34,8 @@ public:
virtual ~Exception() throw() {}
// NON-VIRTUAL METHOD for setting and printing the error message
void setMessage(const std::string& msg) { d_msg = msg; }
- // Printing: feel free to redefine toString(). When inherited,
+ std::string getMessage() const { return d_msg; }
+ // Printing: feel free to redefine toString(). When inherited,
// it's recommended that this method print the type of exception
// before the actual message.
virtual std::string toString() const { return d_msg; }
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback