Added error handler

This commit is contained in:
2017-09-07 16:11:54 +07:00
parent 796148a532
commit 23622bc5a8
14 changed files with 204 additions and 56 deletions

11
App/Views/Errors/404.html Normal file
View File

@@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block title %}Sorry :-({% endblock %}
{% block body %}
<h2>URL not found - Error 404</h2>
Cannot specify the requested URL. Checking typo ...<br>
<span style="font-size: small;">Sshh! No typos.</span>
{% endblock %}

10
App/Views/Errors/498.html Normal file
View File

@@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block title %}Sorry :-({% endblock %}
{% block body %}
<h2>Invalid Token</h2>
Your token is no longer valid. Please try again.<br>
{% endblock %}

10
App/Views/Errors/500.html Normal file
View File

@@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block title %}Sorry :-({% endblock %}
{% block body %}
<h2>Aw, crap!</h2>
We couldn't get what you want. Please come back home.
{% endblock %}

View File

@@ -0,0 +1,16 @@
{% extends "base.html" %}
{% block title %}Error/Exception{% endblock %}
{% block body %}
<h2>{{ title }}</h2>
<p>{{ class }}</p>
<p>{{ message }}</p>
<p>{{ trace_title }}
<pre>{{ trace_content }}</pre>
</p>
<p>{{ file }}</p>
{% endblock %}