From b7335b8c1425138601698f2deac8e471b371cbcc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 19 Sep 2011 16:47:07 +0200 Subject: Throw exception instead of returning false to indicate validation failure This is consistent with what's done in processor and generator. --- odb/validator.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'odb/validator.hxx') 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&, -- cgit v1.1