odel</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="language-javascript line-numbers"><code class="javascript language-javascript"><span class="token function">setupController</span><span class="token punctuation">(</span><span class="token parameter">controlle