Skip to content

Instantly share code, notes, and snippets.

@longliveenduro
Last active December 24, 2015 02:19
Show Gist options
  • Select an option

  • Save longliveenduro/6729852 to your computer and use it in GitHub Desktop.

Select an option

Save longliveenduro/6729852 to your computer and use it in GitHub Desktop.
case object ArticleNotFound
trait ArticleService {
def getArticleDetails(articleId: Long): Future[Either[ArticleNotFound.type, ArticleDetails]]
def getArticleIdByUniqueName(articleName: String): Future[Either[ArticleNotFound.type, Long]]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment