def tryOr[T](message: String)(action: => T) = { try { Some(action) } catch { case e: Throwable => { Log.error(message, e) None } } }
tryOr("Oi-vei, could not find...") { database.findUserNamed("Captain Nemo") }
Either