Added exception handling code for 'invalid_response'.
This commit is contained in:
parent
aee2b6dd74
commit
2a39997480
@ -244,6 +244,14 @@ static std::ostream& operator<<(std::ostream& os, const vmime::exception& e)
|
||||
os << " response = " << cee.response() << std::endl;
|
||||
}
|
||||
|
||||
if (dynamic_cast <const vmime::exceptions::invalid_response*>(&e))
|
||||
{
|
||||
const vmime::exceptions::invalid_response& ir =
|
||||
dynamic_cast <const vmime::exceptions::invalid_response&>(e);
|
||||
|
||||
os << " response = " << ir.response() << std::endl;
|
||||
}
|
||||
|
||||
if (dynamic_cast <const vmime::exceptions::connection_greeting_error*>(&e))
|
||||
{
|
||||
const vmime::exceptions::connection_greeting_error& cgee =
|
||||
|
Loading…
Reference in New Issue
Block a user