Scope
ScopeException.h
1 #pragma once
2 
3 namespace scope {
4 
10  public std::exception {
11 public:
13  ScopeException(const char* msg)
14  : std::exception(msg)
15  {}
16 };
17 
24 void ScopeExceptionHandler(const std::string& _origin, const bool& _log = true, const bool& _showmessagebox = false, const bool& _trace = true, const bool& _rethrow = false);
25 
31 void __ScopeExceptionHandlerHelper(const std::string& _msg, const bool& _log, const bool& _showmessagebox, const bool& _trace);
32 
38 void __ScopeExceptionHandlerHelperW(const std::wstring& _msg, const bool& _log, const bool& _showmessagebox, const bool& _trace);
39 
42 }
Simple exception class for Scope.
Definition: ScopeException.h:9
STL namespace.
void __ScopeExceptionHandlerHelper(const std::string &_msg, const bool &_log, const bool &_showmessagebox, const bool &_trace)
Helper function that actually handles the logging to the ScopeLogger.
void __ScopeExceptionHandlerHelperW(const std::wstring &_msg, const bool &_log, const bool &_showmessagebox, const bool &_trace)
Helper function that actually handles the logging to the ScopeLogger (wide string version) ...
void ScopeExceptionHandler(const std::string &_origin, const bool &_log, const bool &_showmessagebox, const bool &_trace, const bool &_rethrow)
Handles all exceptions and does nice logging.
ScopeException(const char *msg)
Construct with a message.