Catch all possible RootException based exceptions in routing thread

This commit is contained in:
Constantin Shalnev 2015-06-17 15:36:57 +03:00 committed by Alex Zolotarev
parent ccd4774e5d
commit ed6376de4c

View file

@ -159,10 +159,9 @@ void AsyncRouter::CalculateRouteImpl(TReadyCallback const & callback)
SendStatistics(startPoint, startDirection, finalPoint, code, elapsedSec);
}
catch (Reader::Exception const & e)
catch (RootException const & e)
{
LOG(LERROR,
("Routing index is absent or incorrect. Error while loading routing index:", e.Msg()));
LOG(LERROR, ("Exception happened while calculating route:", e.Msg()));
code = IRouter::InternalError;
SendStatistics(startPoint, startDirection, finalPoint, e.Msg());