Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Per our discussion on IRC/Twitter.
It would be nice if all exceptions thrown had a common base, so something like this is possible to catch all exceptions from Doctrine:
try { // some code here } catch (\Doctrine\Common\BaseException $e) { // something in Doctrine threw an exception, handle it here }
(The name is just an example.)
For reference:
https://wiki.php.net/pear/rfc/pear2_exception_policy