aboutsummaryrefslogtreecommitdiff
path: root/odb/options.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/options.ixx')
-rw-r--r--odb/options.ixx13
1 files changed, 11 insertions, 2 deletions
diff --git a/odb/options.ixx b/odb/options.ixx
index a4a4c1b..8fafd73 100644
--- a/odb/options.ixx
+++ b/odb/options.ixx
@@ -84,8 +84,11 @@ namespace cli
//
inline invalid_value::
invalid_value (const std::string& option,
- const std::string& value)
- : option_ (option), value_ (value)
+ const std::string& value,
+ const std::string& message)
+ : option_ (option),
+ value_ (value),
+ message_ (message)
{
}
@@ -101,6 +104,12 @@ namespace cli
return value_;
}
+ inline const std::string& invalid_value::
+ message () const
+ {
+ return message_;
+ }
+
// file_io_failure
//
inline file_io_failure::