summaryrefslogtreecommitdiff
path: root/2004/i/nono/src/config/config.h
diff options
context:
space:
mode:
Diffstat (limited to '2004/i/nono/src/config/config.h')
-rw-r--r--2004/i/nono/src/config/config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/2004/i/nono/src/config/config.h b/2004/i/nono/src/config/config.h
index f6f22df..4187223 100644
--- a/2004/i/nono/src/config/config.h
+++ b/2004/i/nono/src/config/config.h
@@ -26,6 +26,21 @@
// }}}
#include <string>
+#include <stdexcept>
+
+class ConfigError : public std::runtime_error
+{
+ const char *m_file;
+ const char *m_id;
+ const char *m_descr;
+ public:
+ ConfigError (const char *file, const char *id,
+ const char *descr)
+ { m_file = file; m_id = id; m_descr = descr; }
+ ConfigError (const char *file, const char *descr)
+ { m_file = file; m_id = 0; m_descr = descr; }
+ virtual const char *what () const throw ();
+};
class Config
{