title: Does Spring JPA throw an error if save function is unsuccessful?
body: <p>I would like to know if and what type of error is thrown by Spring JPA when trying to save an object to a database. The <code>JpaRepository.java</code> says to look at <code>org.springframework.data.repository.CrudRepository#save</code>. However, I can not seem to find what type of error is thrown, if any at all. If no error is thrown, how do I go about checking if the save was successful?</p>
  <p>Any insight would be much appreciated.</p>