Skip to content

Commit

Permalink
Improve wording.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 24, 2023
1 parent 3358dc8 commit 667293d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions en/development/errors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -416,16 +416,17 @@ If your application contained the following exception::

use Cake\Core\Exception\CakeException;

class MissingWidgetException extends Exception
class MissingWidgetException extends CakeException
{
}

You could provide nice development errors, by creating
**templates/Error/missing_widget.php**. When in production mode, the above
error would be treated as a 500 error and use the **error500** template.

If your exceptions have a code between ``400`` and ``506`` the exception code
will be used as the HTTP response code.
Exceptions that subclass ``Cake\Http\Exception\HttpException``, will have their
error code used as an HTTP status code if the error code is between ``400`` and
``506``.

The constructor for :php:exc:`Cake\\Core\\Exception\\CakeException` allows you to
pass in additional data. This additional data is interpolated into the the
Expand Down

0 comments on commit 667293d

Please sign in to comment.