        Here's our <code class="computeroutput"><span class="identifier">on_error</span></code> handler:
      </p>
<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">error_handler</span>
<span class="special">{</span>
    <span class="keyword">template</span> <span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Iterator</span><span class="special">,</span> <span class="keyword">typename</span> <span class="identifier">Exceptio