title: Classic ASP: On Error Stop
body: <p>I have an ASP page that runs two SQL insert statements at the beginning before displaying the page.  In the event I get a primary key conflict (ie. the inserts have already ran that day), I just want to carry on.</p>
  
  <p>My code is basically:</p>
  
  <pre><code>on error resume next
  ' insert statements
  </code></pre>
  
  <p>Once the statements have been executed, I would like to resume the default error behaviour, where the page dies with an error message.</p>
  
  <p>Is there a command, like "on error stop", or "on error die", or "on error default", or something to reset the error handling to it's default behaviour?</p>