aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/pdsuicommon/db/EntityNotFoundException.scala
blob: 3b3bbdf3555076738e32f297e7b6011a4a9669be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
package xyz.driver.pdsuicommon.db

import xyz.driver.pdsuicommon.domain.Id

class EntityNotFoundException private(id: String, tableName: String)
  extends RuntimeException(s"Entity with id $id is not found in $tableName table") {

  def this(id: Id[_], tableName: String) = this(id.toString, tableName)
  def this(id: Long, tableName: String) = this(id.toString, tableName)
}