ll immediately transition into
that substate (without updating the URL). The "reason" for the error
(i.e. the exception thrown or the promise reject value) will be passed
to that error state as its <code>model</code>.</p>
<p>The model hooks (<code>beforeModel</code>, <code>model</code>, and <code>afterModel</code>) of an error substate
are not called. Only the <code>setupController</code> method of the error substate is
called with the <code>error</code> as the model. See example below:</p>
<pre class="lang