I just stumbled up on a situation where I was wondering if there is an error event on controllers similar to routes or not? something like what is provided for routes during transitions here.
To be more exact what I’m looking for is that in some of my controller’s actions, I want to return a promise and when that promise is rejected an error event is fired. Even better is that if controller does not provide an
error action, this event is passed to route and bubbled up the route until application’s router. This way I can have a final fallback for the worst case that an error is not handled.
Is this somehow possible to be done automatically in Ember?