diff --git a/language/exceptions.xml b/language/exceptions.xml index ab469d96a4..082414bf21 100644 --- a/language/exceptions.xml +++ b/language/exceptions.xml @@ -1,5 +1,5 @@ - + Exceptions @@ -27,12 +27,19 @@ - Internal PHP functions mainly use Error reporting, only modern + Internal PHP functions mainly use + Error reporting, only modern + Object oriented extensions use exceptions. However, errors can be simply translated to exceptions with ErrorException. + + + The Standard PHP Library (SPL) provides a + good number of built-in exceptions. + + Throwing an Exception