diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-01 21:26:58 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-01 21:26:58 +0900 |
| commit | f0f4f8f703b8c927fe8008daecb2d0547d486973 (patch) | |
| tree | aa9f93e55f375f342cc72fb62b5d1cca240c07be /src/OptionHandlerException.cc | |
| parent | 6bc215fcec22d8bdf760c78cc25cb8798266c8a5 (diff) | |
Added more error code values.
I have not set error code for all exception invocation.
In this change, I set error code where error likely occurs.
Diffstat (limited to 'src/OptionHandlerException.cc')
| -rw-r--r-- | src/OptionHandlerException.cc | 5 |
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() {} |
