On 05/10/12 11:34, David Muir wrote:
> In my config I have:
>
> ...
> 'view_manager' => array(
>         'display_not_found_reason' => true,
>         'display_exceptions'       => true,
> ...
>
> But when the application throws and exception, I get a blank page.
> Shouldn't the exception be caught an then displayed?
>
> Cheers,
> David

Ah, now I get it. Exceptions thrown by a controller (or anything further
down the stack) are  caught and displayed. But exceptions thrown in the
higher up MVC layers are not caught. Is this intentional?

Eg, if my Module.php onBootstrap() throws an exception, then it results
in a fatal uncaught exception.

Cheers,
David


-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to