Skip to content

Commit 0d493d1

Browse files
committed
docs: add link and change paragraph order for readability
1 parent 83ea16f commit 0d493d1

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

user_guide_src/source/general/errors.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,18 @@ The following framework exceptions are available:
9595
PageNotFoundException
9696
---------------------
9797

98-
This is used to signal a 404, Page Not Found error. When thrown, the system will show the view found at
99-
**app/Views/errors/html/error_404.php**. You should customize all of the error views for your site.
100-
If, in **app/Config/Routes.php**, you have specified a 404 Override, that will be called instead of the standard
101-
404 page:
98+
This is used to signal a 404, Page Not Found error:
10299

103100
.. literalinclude:: errors/007.php
104101

105102
You can pass a message into the exception that will be displayed in place of the default message on the 404 page.
106103

104+
When thrown, the system will show the view found at
105+
**app/Views/errors/html/error_404.php**. You should customize all of the error views for your site.
106+
107+
If, in **app/Config/Routing.php** or **app/Config/Routes.php**, you have specified
108+
a :ref:`404-override`, that will be called instead of the standard 404 page.
109+
107110
ConfigException
108111
---------------
109112

user_guide_src/source/incoming/routing.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,8 @@ to only those defined by you, by setting the ``$autoRoute`` property to false:
664664
.. warning:: If you use the :doc:`CSRF protection </libraries/security>`, it does not protect **GET**
665665
requests. If the URI is accessible by the GET method, the CSRF protection will not work.
666666

667+
.. _404-override:
668+
667669
404 Override
668670
============
669671

0 commit comments

Comments
 (0)