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