I am trying to catch different types of exceptions but I am stuck on an error. I imported scala.util.control.Exception._
try {
isAuthenticatedJson(f)
}catch {
//object RuntimeException is not a value
case RuntimeException => {}
//object Exception is not a value
case Exception => {}
}
What am I missing?