Override _bootstrap(), wrap it in try-catch, catch the exception, register an early plugin that rethrows that exception.
See this gist for an example --> http://gist.github.com/298848 . You might want to add another try-catch outside the bootstrap for when the FrontController resource itself throws an exception. -- Mon On Tue, Feb 9, 2010 at 7:56 AM, Alex Howansky <[email protected]>wrote: > > How do I catch an exception that gets thrown in one of my bootstrap's _init > methods? I'd like to handle it via my standard error handler in the > error/error action but it seems that's not possible since the exception > fires before the request gets dispatched. >
