mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-12 08:43:58 +02:00
Merge pull request #246 from wilmoore/patch-1
Update _posts/05-05-01-Exceptions.md
This commit is contained in:
@@ -42,7 +42,8 @@ catch(Fuel\Email\SendingFailedException $e)
|
|||||||
|
|
||||||
### SPL Exceptions
|
### SPL Exceptions
|
||||||
|
|
||||||
An Exception by default has no meaning and the most common to give it meaning is by setting its name:
|
The generic `Exception` class provides very little debugging context for the developer; however, to remedy this,
|
||||||
|
it is possible to create a specialized `Exception` type by sub-classing the generic `Exception` class:
|
||||||
|
|
||||||
{% highlight php %}
|
{% highlight php %}
|
||||||
<?php
|
<?php
|
||||||
|
Reference in New Issue
Block a user