scala

class throws

[source: scala/throws.scala]

class throws(clazz : java.lang.Class[Any])
extends StaticAnnotation

Annotation for specifying the exceptions thrown by a method. For example:

    class Reader(fname: String) {
      private val in =
        new BufferedReader(new FileReader(fname))
      @throws(classOf[IOException])
      def read() = in.read()
    }
Author
Nikolay Mihaylov
Version
1.0, 19/05/2006
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf