Future[Option]#map(_.getOrElse(DBIO.failed...

def getOptionHoge: Future[Option[Hoge]] ={...}

for {
  hoge <- getOptionHoge.map(_.getOrElse(DBIO.failed(

シグネチャ

/** Returns the option's value if the option is nonempty, otherwise
   * return the result of evaluating `default`.
   *
   *  @param default  the default expression.
   */
  @inline final def getOrElse[B >: A](default: => B): B =
    if (isEmpty) default else this.get

scalaz使用

hoge <- OptionT(getOptionHoge).getOrElseF(Future.failed(new Exception(