$message=sprintf('No route found for "%s %s"',$this['request']->getMethod(),$this['request']->getPathInfo());
thrownewNotFoundHttpException($message,$e);
}elseif($einstanceofMethodNotAllowedException){
$message=sprintf('No route found for "%s %s": Method Not Allowed (Allow: %s)',$this['request']->getMethod(),$this['request']->getPathInfo(),strtoupper(implode(', ',$e->getAllowedMethods())));