summaryrefslogtreecommitdiff
path: root/src/OptionHandlerException.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/OptionHandlerException.cc')
-rw-r--r--src/OptionHandlerException.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/OptionHandlerException.cc b/src/OptionHandlerException.cc
index fa737465..f3949768 100644
--- a/src/OptionHandlerException.cc
+++ b/src/OptionHandlerException.cc
@@ -43,14 +43,15 @@ const std::string OptionHandlerException::MESSAGE
OptionHandlerException::OptionHandlerException(const char* file, int line,
const std::string& optName):
RecoverableException
- (file, line, fmt(MESSAGE.c_str(), optName.c_str())),
+ (file, line, fmt(MESSAGE.c_str(), optName.c_str()), error_code::OPTION_ERROR),
optName_(optName) {}
OptionHandlerException::OptionHandlerException(const char* file, int line,
const std::string& optName,
const Exception& cause):
RecoverableException
- (file, line, fmt(MESSAGE.c_str(), optName.c_str()), cause),
+ (file, line, fmt(MESSAGE.c_str(), optName.c_str()), error_code::OPTION_ERROR,
+ cause),
optName_(optName) {}
OptionHandlerException::~OptionHandlerException() throw() {}