Update _posts/05-05-01-Exceptions.md

The original purpose of this edit was to correct a gramatical error; however, this turned into a more detailed explanation of `Exception` sub-classing.
This commit is contained in:
Wil Moore III
2013-02-18 03:31:57 -07:00
parent e9755c12d7
commit 5b6928a08b

View File

@@ -42,7 +42,8 @@ catch(Fuel\Email\SendingFailedException $e)
### 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 %}
<?php