aboutsummaryrefslogtreecommitdiff
path: root/odb/validator.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-19 16:47:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-19 16:47:07 +0200
commitb7335b8c1425138601698f2deac8e471b371cbcc (patch)
tree44b882d839540d14bfc7f754aca8344301212342 /odb/validator.hxx
parent8fc4fda0ce88fccbe40c36be3925237a4bca36d9 (diff)
Throw exception instead of returning false to indicate validation failure
This is consistent with what's done in processor and generator.
Diffstat (limited to 'odb/validator.hxx')
-rw-r--r--odb/validator.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/validator.hxx b/odb/validator.hxx
index 370e5e0..cb6076a 100644
--- a/odb/validator.hxx
+++ b/odb/validator.hxx
@@ -12,9 +12,11 @@
class validator
{
public:
+ struct failed {};
+
// The first pass is performed before processing. The second -- after.
//
- bool
+ void
validate (options const&,
semantics::unit&,
semantics::path const&,