package com.xing.listfile
import java.io.IOException
/**
* Created by DengNi on 2017/2/14.
*/
object HelloExceptionAndLazy {
def main(args: Array[String]) {
try{
1/0
}catch{
case ioException:IOException => println("this is a IOException " + ioException.toString)
case arithmeticException :ArithmeticException => println("he " + arithmeticException.toString)
}
lazy val one = 1
println(one)
}
}