Zend Framework

implementation of Zend_Controller_Response_Abtract::clearExceptions()

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.8.1
  • Fix Version/s: None
  • Component/s: Zend_Controller
  • Labels:
    None

Description

Hi,

Zend_Controller_Response_Abstract has a bunch of clearXXX() methods, but unfortunately no clearExceptions().
I've quickly subclassed it to add this method, but it would be nice to have it natively.

Let's say you have a specific error type, that when raised, is catched by error-handler as any other exception, and then error-handler (or any other plugin) redirect to a normal action/controller query. Well on next postDispatch loop event, your response will still be flagged has having an error and will again be handled by your error controller => recursivity, here we come!

This is just a situation among others were it would be useful. It's just that since a clear method already exists for almost all response properties, it would be nice to have it for exceptions too.

Regards,
Remy

Activity

Hide
Remy Damour added a comment -

code I used to subclass response object can be viewed here: http://www.qc4blog.com/?p=766

Cheers, Remy

Show
Remy Damour added a comment - code I used to subclass response object can be viewed here: http://www.qc4blog.com/?p=766 Cheers, Remy

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: