diff --git a/examples/example6.cpp b/examples/example6.cpp index 6ce14a41..2783996a 100644 --- a/examples/example6.cpp +++ b/examples/example6.cpp @@ -244,6 +244,14 @@ static std::ostream& operator<<(std::ostream& os, const vmime::exception& e) os << " response = " << cee.response() << std::endl; } + if (dynamic_cast (&e)) + { + const vmime::exceptions::invalid_response& ir = + dynamic_cast (e); + + os << " response = " << ir.response() << std::endl; + } + if (dynamic_cast (&e)) { const vmime::exceptions::connection_greeting_error& cgee =