|
UsingExceptions
Using Exceptions
The GetOpt_pp class provides the exceptions() methods (a setter and a getter), same as STL streams. In order to enable exception throwing, invoke exceptions(flags) with the proper flags:
If you want to enable all the options at once, then just call the exceptions_all() method instead. All the exceptions derive from GetOptEx, which in turns derives from std::exception. These exceptions are:
// Next: Querying the Environment Vars Back to Table of Contents |
► Sign in to add a comment