#013901: Exceptions thrown in controllers are not catched for createFatalRedirectRequest

Description:

Exceptions in the controller code are currently thrown up and can only be fetched when try-catch'ing the dispatching process.

It would be nice to redirect them to the Fatal Controller though. Things to change:

<code>
// run the controller
try {
$result = $controller->createResult();
} catch(Exception $e) {
$request = $this->configuration->createFatalRedirectRequest( $request, new ezcMvcResult, $e );
$continue = true;
$redirects++;
continue;
}</code>


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


Steps to Reproduce:

Throw an exception in any controller: new Exception("Hello");


- Attachments

No attachments for this issue.


- Comments

Fixed in rev. 9294.

#258954 by Derick Rethans on November 7th, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » MvcTools
Affects Unknown
Fix Version 2008.2alpha1 - eZ components 2008.2alpha1
Reporter Benjamin Eberlei
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created November 6th, 2008
Updated November 7th, 2008
Resolved November 7th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels