aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/xyz/driver/core/rest/NoServiceDiscovery.scala
blob: 9d2febd5a561892645fa7bb7233c76bcb6a86864 (plain) (blame)
1
2
3
4
5
6
7
8
9
package xyz.driver.core.rest

import xyz.driver.core.Name

class NoServiceDiscovery extends ServiceDiscovery with SavingUsedServiceDiscovery {

  def discover[T <: Service](serviceName: Name[Service]): T =
    throw new IllegalArgumentException(s"Service with name $serviceName is unknown")
}