title: Stopping Tridion publishing with exceptions
body: <p>I would like to stop publishing when a certain condition exists in Tridion 2011.  In a Razor template I try:</p>
  
  <pre><code>throw new Exception("Exceptional condition!");
  </code></pre>
  
  <p>But, in Template Builder it says 'successful'.  </p>
  
  <p>Any ideas?</p>
  
  <p>In VBScript templates we would do Err.Raise and it would throw the error back to the Publish Queue.</p>