blob: 75638e792f67f3b6717d1e907668a2b6ce539e23 (
plain) (
tree)
|
|
object Test extends App {
trait SpecialException {}
try {
throw new Exception
} catch {
case e : SpecialException => {
println("matched SpecialException: "+e)
assume(e.isInstanceOf[SpecialException])
}
case e : Exception => {
assume(e.isInstanceOf[Exception])
}
}
}
|