The convert(RuntimeException) method handles both HibernateException and RuntimeException.