diff options
| author | Stefan Boberg <[email protected]> | 2023-05-08 09:18:31 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-08 09:18:31 +0200 |
| commit | b4dd4279139f6496eace81723d0b20aa1275324e (patch) | |
| tree | ccd102edcbea9e127ee11a3cf890f00ceb15ad35 /src/zencore | |
| parent | 247 complete httpclient implementation (#269) (diff) | |
| download | zen-b4dd4279139f6496eace81723d0b20aa1275324e.tar.xz zen-b4dd4279139f6496eace81723d0b20aa1275324e.zip | |
replace use of cxxopts::OptionParseException in our code
later versions of cxxopts changed the signatures of exceptions. This change adds zen::OptionParseException to replace it
Diffstat (limited to 'src/zencore')
| -rw-r--r-- | src/zencore/include/zencore/except.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/except.h b/src/zencore/include/zencore/except.h index c61db5ba9..d3269f33a 100644 --- a/src/zencore/include/zencore/except.h +++ b/src/zencore/include/zencore/except.h @@ -54,4 +54,12 @@ MakeErrorCodeFromLastError() noexcept return std::error_code(zen::GetLastError(), std::system_category()); } +////////////////////////////////////////////////////////////////////////// + +class OptionParseException : public std::runtime_error +{ +public: + inline explicit OptionParseException(const std::string& Message) : std::runtime_error(Message) {} +}; + } // namespace zen |