aboutsummaryrefslogtreecommitdiff
path: root/src/zencore
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore')
-rw-r--r--src/zencore/include/zencore/except.h8
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