[wp-trac] [WordPress Trac] #57842: Add a new independent WP_Exception class, compatible with WP_Error

WordPress Trac noreply at wordpress.org
Mon Aug 4 15:22:55 UTC 2025


#57842: Add a new independent WP_Exception class, compatible with WP_Error
-------------------------+------------------------------
 Reporter:  junaidbhura  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by iamchitti):

 `WP_Error` has its place, but having a proper `WP_Exception` in core would
 be a big win for modern development. Even a basic version gives devs a
 cleaner, more standard way to handle errors. Definitely support getting
 this in as a starting point.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57842#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list