@throws(classOf[B]) class ExceptionTest { @throws(classOf[C]) def foo(@throws(classOf[D]) x: Int) {} @throws(classOf[E]) type t = String }