Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 247 Bytes
/* Define the exception here */
class BadLengthException: public exception {
private:
int length;
public:
BadLengthException(int n) {
length = n;
}
const char * what () {
return to_string(length).c_str();
}
};