Also if you want, now that we are in Scala 2.10, you could use Try instead of Either (http://www.scala-lang.org/archives/downloads/distrib/files/nightly/docs/library/index.html#scala.util.Try) which is cleaner for this use case.