sに使用する部分関数に暗黙的なパラメーターを渡したいと思いrecover
ますFuture
。
def delete(id: Long) = ... { implicit something =>
serviceLayer.doSomething(id).recover(errorHandler)
}
def errorHandler: PartialFunction[Throwable, Result] = {
// I want to access the implicit parameter here
case e@SomeException(message) => ... and here
case _ => ... and here
}