summaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-27 16:56:34 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-27 16:56:34 +0100
commitbc419bd953dc31184aa3f3a6a3c9b8693bc34b7c (patch)
tree6858141a99a7d92b1c071048d678614ddc28ae26 /src/exceptions.h
parentf0de0c63504446714ab642f9db872bd31f9c070b (diff)
Start of STL binary reader; start of dumpsubs.
Diffstat (limited to 'src/exceptions.h')
-rw-r--r--src/exceptions.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/exceptions.h b/src/exceptions.h
index 9bab16c..5e784ee 100644
--- a/src/exceptions.h
+++ b/src/exceptions.h
@@ -38,4 +38,20 @@ private:
std::string _message;
};
+class STLError : public std::exception
+{
+public:
+ STLError (std::string const & message) : _message (message) {}
+ ~STLError () throw () {}
+
+ /** @return error message */
+ char const * what () const throw () {
+ return _message.c_str ();
+ }
+
+private:
+ /** error message */
+ std::string _message;
+};
+
}