Added error handler
This commit is contained in:
11
App/Views/Errors/404.html
Normal file
11
App/Views/Errors/404.html
Normal 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
10
App/Views/Errors/498.html
Normal 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
10
App/Views/Errors/500.html
Normal 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 %}
|
||||
16
App/Views/Errors/errorHandler.html
Normal file
16
App/Views/Errors/errorHandler.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user