scala

throws

class throws extends Annotation with 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()
}
Source
throws.scala
Version

1.0, 19/05/2006

Since

2.1

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. throws
  2. StaticAnnotation
  3. Annotation
  4. AnyRef
  5. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new throws(clazz: Class[_])