34 #ifndef EMANEEXCEPTION_HEADER_ 35 #define EMANEEXCEPTION_HEADER_ 62 const char*
what()
const throw()
64 return sDescription_.c_str();
72 virtual const char *
type()
const throw()
74 return sType_.c_str();
79 const std::string & sDescription = {}):
81 sDescription_{sDescription}{}
84 const std::string sType_;
85 const std::string sDescription_;
99 template<
typename T, std::
size_t len = 1024>
108 vsnprintf(buf,
sizeof(buf),fmt,ap);
116 #endif // EMANEEXCEPTION_HEADER_ virtual const char * type() const
Exception base class that allows for type and description information.
const char * what() const
T makeException(const char *fmt,...)
Exception(const std::string &sType, const std::string &sDescription={})