[wp-trac] [WordPress Trac] #16769: Make WP_Error extending Exception to make it throw-able

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 9 08:57:34 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 scribu):

 I agree with westi. The only place exceptions would be somewhat useful
 would be in the taxonomy API, but since most of the functions there can
 also be called directly, you would probably end up with more try / catch
 blocks than is_wp_error() checks.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16769#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list