catch (Exception $e)
{
$ex = $e;
if ($config->phalcon->debug)
{
include_once(rtrim($config->phalcon->viewsDir, '/').'/error/exception_debug.phtml');
}
else
{
include_once(rtrim($config->phalcon->viewsDir, '/').'/error/exception.phtml');
}
}