diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-19 16:47:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-19 16:47:07 +0200 |
commit | b7335b8c1425138601698f2deac8e471b371cbcc (patch) | |
tree | 44b882d839540d14bfc7f754aca8344301212342 /odb/validator.hxx | |
parent | 8fc4fda0ce88fccbe40c36be3925237a4bca36d9 (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.hxx | 4 |
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&, |