You are viewing a single comment's thread. Return to all comments →
C++14 per API that derives from std::exception instead of a free-floating class/struct.
std::exception
class
struct
class BadLengthException : exception { public: BadLengthException( int length ) : message_(to_string(length)) {} const char* what() const noexcept override { return message_.c_str(); } private: string message_; };
Seems like cookies are disabled on this browser, please enable them to open this website
Inherited Code
You are viewing a single comment's thread. Return to all comments →
C++14 per API that derives from
std::exception
instead of a free-floatingclass
/struct
.