note 110968 added to exception.construct
| From: | mattsch at gmail dot com | Date: | Mon, 31 Dec 2012 15:08:14 +0000 |
| Subject: | note 110968 added to exception.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192714@lists.php.net to get a copy of this message | ||
Be aware that while $previous is quite useful in providing exception chaining and better
traceability, none of the internal php exceptions (e.g. PDOException, ReflectionException, etc) are
called internally within php with $previous in mind.
So if your code throws an exception, recovers from it, then catches one of these internal php
exceptions, recovers from it and throws another exception, you will not know the first exception
that was thrown when calling getPrevious.
See: https://bugs.php.net/bug.php?id=63873
----
Server IP: 69.147.83.199
Probable Submitter: 107.42.89.56
----
Manual Page -- http://php.net/manual/en/exception.construct.php
Edit -- https://master.php.net/note/edit/110968
Del: integrated -- https://master.php.net/note/delete/110968/integrated
Del: useless -- https://master.php.net/note/delete/110968/useless
Del: bad code -- https://master.php.net/note/delete/110968/bad+code
Del: spam -- https://master.php.net/note/delete/110968/spam
Del: non-english -- https://master.php.net/note/delete/110968/non-english
Del: in docs -- https://master.php.net/note/delete/110968/in+docs
Del: other reasons-- https://master.php.net/note/delete/110968
Reject -- https://master.php.net/note/reject/110968
Search -- https://master.php.net/manage/user-notes.php