diff options
Diffstat (limited to 'build2/b-options.hxx')
-rw-r--r-- | build2/b-options.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build2/b-options.hxx b/build2/b-options.hxx index c9eed77..f3ba750 100644 --- a/build2/b-options.hxx +++ b/build2/b-options.hxx @@ -155,7 +155,8 @@ namespace build2 ~invalid_value () throw (); invalid_value (const std::string& option, - const std::string& value); + const std::string& value, + const std::string& message = std::string ()); const std::string& option () const; @@ -163,6 +164,9 @@ namespace build2 const std::string& value () const; + const std::string& + message () const; + virtual void print (::std::ostream&) const; @@ -172,6 +176,7 @@ namespace build2 private: std::string option_; std::string value_; + std::string message_; }; class eos_reached: public exception |