72 const char*
what() const noexcept override;
80 template<typename T>
Except& operator<<(const T& ex)
107 std::ostringstream exceptStrm;
109 mutable std::string exceptMsg;
111 std::vector<std::string> _stack_trace;
wxm::lib::Except is the class to use for creating and throwing exceptions.
Definition: wxexcept.h:31
Except & operator=(const Except &ex)
Assigns from supplied exception object.
~Except() override=default
Deletes exception.
Except(const std::string &str)
Creates new exception with supplied message.
const std::vector< std::string > & get_stack_trace() const
This returns the stack trace.
Except(Except &&ex)=default
Except(const Except &ex)
Copies exception and backtrace from supplied exception object.
Except & operator<<(std::ostream &(*p)(std::ostream &))
Inserts iomanip element into the output message.
Definition: wxexcept.h:92
const char * what() const noexcept override
Returns error message: this is provided for compatibility with std::exception interface.
Except()
Creates a new exception object with empty message and backtrace.
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
wxm::lib::Except WxExcept
Definition: wxexcept.h:120