Always throw std exceptions (eg. bad_alloc) and VMime time out exceptions.

This commit is contained in:
Vincent Richard 2013-02-16 11:23:30 +01:00
parent 725070467c
commit 0af0373cb6

View File

@ -4962,7 +4962,12 @@ private:
{ {
resp->go(*this, line, currentPos); resp->go(*this, line, currentPos);
} }
catch (...) catch (exceptions::operation_timed_out& e)
{
// Always rethrow
throw;
}
catch (exception& e)
{ {
*currentPos = oldPos; *currentPos = oldPos;
@ -4992,7 +4997,12 @@ public:
TYPE term; TYPE term;
term.go(*this, line, currentPos); term.go(*this, line, currentPos);
} }
catch (...) catch (exceptions::operation_timed_out& e)
{
// Always rethrow
throw;
}
catch (exception& e)
{ {
*currentPos = oldPos; *currentPos = oldPos;
@ -5014,7 +5024,12 @@ public:
TYPE term(arg); TYPE term(arg);
term.go(*this, line, currentPos); term.go(*this, line, currentPos);
} }
catch (...) catch (exceptions::operation_timed_out& e)
{
// Always rethrow
throw;
}
catch (exception& e)
{ {
*currentPos = oldPos; *currentPos = oldPos;