> </h2>
<section aria-labelledby="toc_error-substates">
<p>Ember provides an analogous approach to <code>loading</code> substates in
the case of errors encountered during a transition.</p>
<p>Similar to how the default <code>loading</code> event handlers are implemented,
the default <code>error</code> handlers will look for an appropriate error substate to
enter, if one can be found.</p>
<div class="filename javascript"><div class="ribbon"></div><span>app/router.js</span><pre class="language-javascript line