Ich versuche zu werfen String zu Int mit Abzieher. Mein code sieht wie folgt aus. object Apply { def unapply(s: String): Option[Int] = try { Some(s.toInt) } catch { case _: java.lang.Exception => None } } object