Elements  6.0.1
A C++ base framework for the Euclid Software.
OptionException.h
Go to the documentation of this file.
1 
21 #ifndef ELEMENTSKERNEL_SRC_LIB_OPTIONEXCEPTION_H_
22 #define ELEMENTSKERNEL_SRC_LIB_OPTIONEXCEPTION_H_
23 
24 #include <string>
25 
27 
28 namespace Elements {
29 
30 class OptionException : public Exception {
31 
32 public:
33  explicit OptionException(const std::string& message = "") : Exception(message, Elements::ExitCode::USAGE) {}
34 };
35 
36 } // namespace Elements
37 
38 #endif // ELEMENTSKERNEL_SRC_LIB_OPTIONEXCEPTION_H_
defines the base Elements exception class
Elements base exception class.
Definition: Exception.h:47
OptionException(const std::string &message="")
ExitCode
Strongly typed exit numbers.
Definition: Exit.h:97
@ USAGE
command line usage error