title: How to register a custom exception mapper in Mule + Jersey + Spring?
body: <p>I built a exception mapper using JAX-RS ExceptionMapper:</p>
  
  <pre><code>@Provider
  public class MyCustomExceptionMapper implements ExceptionMapper&lt;MyException&gt;{...}
  </code></pre>
  
  <p>It is unclear to me is how to register it so that when MyException is thrown, the mapper is called automatically.  The environment I am using is Mule + Jersey + Spring.</p>