[wp-trac] [WordPress Trac] #16769: Make WP_Error extending Exception to make it throw-able
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 7 19:36:05 UTC 2011
#16769: Make WP_Error extending Exception to make it throw-able
-------------------------+-----------------------------
Reporter: hakre | Owner:
Type: enhancement | Status: reopened
Priority: lowest | Milestone: Future Release
Component: General | Version: 3.1
Severity: normal | Resolution:
Keywords: |
-------------------------+-----------------------------
Comment (by filosofo):
We currently have poor-man's exceptions in a number of places. For
example, [http://core.trac.wordpress.org/browser/trunk/wp-includes/ms-
functions.php#L276 here] a `WP_Error` object is returned, but nothing in
core WP does anything with that return value. So upon error the logic
branches, an error object is created, but nothing can be done with the
helpful information in the way that a thrown exception could be caught.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16769#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list