title: How to override default Spring JPA exception translator behavior?
body: <p>I don't know if this approach is the best or not. But I have a requirement where I need to handle Spring JPA repository (DAO layer) exception. Handle in the sense may be propogate it to UI or may be do some logic on service layer.</p>
  
  <p>Now as per present scenario from over repositories all our SQL Exception got wrapped into Runtime exception DataAccessException.</p>
  
  <p>Now one way if I want to propogate this Exceptions to my UI layer than I catch this Runtime Exception on Service layer and wrap this exception into my Custom Exception and then propogate it. But I don't want to catch this Runtime exception. Is there any way that I override the Exception translator behavior of Spring JPA and make it wrap all SQL exception into my Custom Checked exception? If I am able to do this, in my views this approach is better.</p>