From 0976bea9952235050024efbc00a8d756e16f87d5 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Sat, 15 Nov 2008 18:39:46 +0000 Subject: [PATCH] - Only modern *object oriented* extensions possibly use exceptions - Add a tip about the pre-existing SPL exceptions git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@269065 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/exceptions.xml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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