#include "BaseException.hpp" using namespace std; class DerivedException: public BaseException { int b; public: DerivedException(int a, int b): BaseException(a) { this->b = b; } char* message() { sprintf(s, "DerivedException, a: %d, b: %d\n", a, b); return s; } };