I'd recommend just throwing some exception instead.

(Not the case with Scala apparently, but I've seen Java compilers that issue a compile-time error when you do that.)