aboutsummaryrefslogtreecommitdiff
path: root/cutl/compiler/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-19 08:20:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-19 08:20:12 +0200
commit6ca1c8ee64bf7268d194eb15e72d3024a335039d (patch)
tree8876f51d9392f35c27eca83126fb9732e01bd916 /cutl/compiler/context.hxx
parentf0fb6aeab118255266370121db79ab2a2fed88ad (diff)
Add root exception class
Derive all other exceptions from it.
Diffstat (limited to 'cutl/compiler/context.hxx')
-rw-r--r--cutl/compiler/context.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/cutl/compiler/context.hxx b/cutl/compiler/context.hxx
index 4bae010..5f4eb1e 100644
--- a/cutl/compiler/context.hxx
+++ b/cutl/compiler/context.hxx
@@ -10,6 +10,7 @@
#include <string>
#include <cstddef> // std::size_t
+#include <cutl/exception.hxx>
#include <cutl/container/any.hxx>
namespace cutl
@@ -19,8 +20,8 @@ namespace cutl
class context
{
public:
- struct no_entry {};
- struct typing {};
+ struct no_entry: exception {};
+ struct typing: exception {};
public:
context () {}