title: How to define exception to be thrown through ref in Apache Camel
body: <p>Have to throw an exception in my camel route defined in XML. Found <code>throwException</code> statement available from Camel 2.3 which looks like:</p>
  
  <pre><code> &lt;throwException ref="forced"&gt;&lt;/throwException&gt;
  </code></pre>
  
  <p>However, I don't know how to define <code>forced</code> exception class to be thrown. Since same exception could be thrown couple of times with different exception messages - would be good to know if <code>throwException</code> has some other form of definition so exception class and exception message are defined in-place. </p>