/* */ #include "Exception.h" ostream& operator<<(ostream& o, const Exception& e) { o << e.getMsg() << "\n"; for(Exception* cause = e.getCause(); cause; cause = cause->getCause()) { o << "Cause: " << cause->getMsg() << "\n"; } return o; }