diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-04-07 12:15:54 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-04-07 12:15:54 +0000 |
commit | 48fdb8620aeb3253f0048667044b39301c1d77c8 (patch) | |
tree | 1677e938deef28b99a0d0cd2022c34f05c906d92 /src/library/scala/throws.scala | |
parent | 09d3a7bb5b1a96300b78e7f1b38f135c5ab80d20 (diff) | |
download | scala-48fdb8620aeb3253f0048667044b39301c1d77c8.tar.gz scala-48fdb8620aeb3253f0048667044b39301c1d77c8.tar.bz2 scala-48fdb8620aeb3253f0048667044b39301c1d77c8.zip |
New reorg plan
Diffstat (limited to 'src/library/scala/throws.scala')
-rw-r--r-- | src/library/scala/throws.scala | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/library/scala/throws.scala b/src/library/scala/throws.scala new file mode 100644 index 0000000000..463a01b3f9 --- /dev/null +++ b/src/library/scala/throws.scala @@ -0,0 +1,30 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +*/ + +// $Id$ + + +package scala + +import Predef._ + +/** <p> + * Annotation for specifying the exceptions thrown by a method. + * For example: + * </p><pre> + * <b>class</b> Reader(fname: String) { + * <b>private val</b> in = + * <b>new</b> BufferedReader(<b>new</b> <a class="java/io/FileReader" href="" target="_top">FileReader</a>(fname)) + * @throws(classOf[<a class="java/io/IOException" href="" target="_top">IOException</a>]) + * <b>def</b> read() = in.read() + * }</pre> + * + * @author Nikolay Mihaylov + * @version 1.0, 19/05/2006 + */ +class throws(clazz: Class[_]) extends Annotation |