Permalink
Browse files

[GREEN] Error pages: code

  • Loading branch information...
gajdaw committed Jan 3, 2015
1 parent e12352e commit 84ee55b4414635c16135731686bfd00783dd19c3
@@ -6,5 +6,8 @@
{% block body %}
<h2>The page does not exists!</h2>
<p>
Hey, this beautiful page is yet to be created!
</p>
{% endblock body %}
@@ -5,9 +5,9 @@
{% endblock title %}
{% block body %}
<h2>There was an exception!</h2>
<h2>An error occured!</h2>
<p>
The application caused serious problems!
We are very sorry, but there was a serious error in the application!
</p>
{% endblock body %}
@@ -14,4 +14,13 @@ public function indexAction()
{
return $this->render('default/index.html.twig');
}
/**
* @Route("/action/with/exception")
*/
public function actionWithExceptionAction()
{
throw new \RuntimeException('Ups...');
}
}

0 comments on commit 84ee55b

Please sign in to comment.