17class XBase :
public std::runtime_error
23 explicit XBase(
const std::string &msg);
27 const
char *
what() const throw() override;
42 virtual std::string
format(
const char *
id,
const char *defaultFormat, ...) const noexcept;
45 mutable
std::
string m_what;
XBase()
Use getWhat() as the result of what()
Definition XBase.cpp:17
virtual std::string getWhat() const noexcept
Get a human readable string describing the exception.
Definition XBase.h:31
~XBase() override=default
virtual std::string format(const char *id, const char *defaultFormat,...) const noexcept
Format a string.
Definition XBase.cpp:37
const char * what() const override
Reason for exception.
Definition XBase.cpp:27