summaryrefslogtreecommitdiff
path: root/src/options/options.h
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2018-01-17 12:16:17 -0800
committerGitHub <noreply@github.com>2018-01-17 12:16:17 -0800
commit248b977790b429ebfd22481462193e3e35c57ce2 (patch)
tree9a59a408d113d6a3347f013c2492291769406e82 /src/options/options.h
parent4538f5fe95758f2507c191ab39175491f24e6f67 (diff)
Removes yet more throw specifiers. Updating the documentation as needed. (#1518)
Diffstat (limited to 'src/options/options.h')
-rw-r--r--src/options/options.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/options/options.h b/src/options/options.h
index 608b9906a..d48f16f66 100644
--- a/src/options/options.h
+++ b/src/options/options.h
@@ -176,10 +176,10 @@ public:
/**
* Set the value of the given option by key.
+ *
+ * Throws OptionException or ModalException on failures.
*/
- void setOption(const std::string& key, const std::string& optionarg)
- throw(OptionException, ModalException);
-
+ void setOption(const std::string& key, const std::string& optionarg);
/** Get the value of the given option. Const access only. */
template <class T>
@@ -187,9 +187,11 @@ public:
/**
* Gets the value of the given option by key and returns value as a string.
+ *
+ * Throws OptionException on failures, such as key not being the name of an
+ * option.
*/
- std::string getOption(const std::string& key) const
- throw(OptionException);
+ std::string getOption(const std::string& key) const;
// Get accessor functions.
InputLanguage getInputLanguage() const;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback