protected function catchExceptions($e)
{
foreach ($this->route->sideRoutes as $sideRoute) {
$exceptionClass = get_class($e);
if ($exceptionClass === $sideRoute->class || $sideRoute->class === 'Exception' || $sideRoute->class === '\\Exception') {
$sideRoute->exception = $e;
return $this->forward($sideRoute);
}
}
}