title: Catch Unique Key Exception Scala Slick
body: <p>Below is the code I use in inserting into the db however when the name of a group which is unique is entered I get a unique key violation in the logs </p>
  
  <pre><code>override def create(groups: GroupEntity): Future[GroupEntity] = db.run{groupsTableQuery returning groupsTableQuery += groups}
  </code></pre>