diff options
author | Tim King <taking@cs.nyu.edu> | 2018-01-17 12:16:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 12:16:17 -0800 |
commit | 248b977790b429ebfd22481462193e3e35c57ce2 (patch) | |
tree | 9a59a408d113d6a3347f013c2492291769406e82 /src/options/options.h | |
parent | 4538f5fe95758f2507c191ab39175491f24e6f67 (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.h | 12 |
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; |