Prev Next Home
Slide 5 of 10
More Stuff
You can put this kind of construct in a template and so your catch block can catch T
(except it would returns something different.. but you Can solve this with Abstract Base Classes)
THROWABLE
Throwable Class <-- I missed this
template
class ReadyToThrow: public Throwable {
private: Exception exception;
public: ReadToThrow(const Exception& e) : exception (e) {}
}


Prev Next Home
Slide 5 of 10