You are viewing a single comment's thread. Return to all comments →
This is my exception, it doesn't work on random test cases, anyone knows why ?
class BadLengthException: public exception { private: int length;
public: BadLengthException(int len) : length(len) {} virtual const char* what() const noexcept { stringstream ss; ss << length; return (ss.str().c_str()); }
};
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 →
This is my exception, it doesn't work on random test cases, anyone knows why ?
class BadLengthException: public exception { private: int length;
};