# Error event for controllers similar to routes

**URL:** https://discuss.emberjs.com/t/error-event-for-controllers-similar-to-routes/9670
**Category:** Uncategorized
**Created:** [February 4, 2016, 7:32pm UTC](https://discuss.emberjs.com/t/error-event-for-controllers-similar-to-routes/9670 "2016-02-04T19:32:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mohamnag](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mohamnag/32/9294_2.png) [@mohamnag](https://discuss.emberjs.com/u/mohamnag)
#### Post date: [February 4, 2016, 7:32pm UTC](https://discuss.emberjs.com/t/error-event-for-controllers-similar-to-routes/9670/1 "2016-02-04T19:32:46Z")

</div>

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](https://guides.emberjs.com/v1.13.0/routing/loading-and-error-substates/#toc_the-code-error-code-event).

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?
