blob: d4c11ac9f84b9949841a943cbb421cc7e5908576 (
plain) (
tree)
|
|
package xyz.driver.common.db
import xyz.driver.common.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)
}
|