Friday, November 12, 2010

Exceptions

Scala exception handling is very similar to Java. Here is how it is handled:

try{
doSomethingHere()
}
catch {
case e:Exception => handleExceptionHere()
}

No comments:

Post a Comment