diff options
author | mihaylov <mihaylov@epfl.ch> | 2006-05-19 14:53:45 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2006-05-19 14:53:45 +0000 |
commit | f746ce36d86a08c8456f5fae04459addcdd2c62d (patch) | |
tree | 28f83ab373c91db2939243f0d29339d92b6c312a /src/library | |
parent | 16b00da844c40cc76cee72088bd6dc49fa38d98c (diff) | |
download | scala-f746ce36d86a08c8456f5fae04459addcdd2c62d.tar.gz scala-f746ce36d86a08c8456f5fae04459addcdd2c62d.tar.bz2 scala-f746ce36d86a08c8456f5fae04459addcdd2c62d.zip |
Added scala.throws(java.lang.Class) attribute t...
Added scala.throws(java.lang.Class) attribute to specify the checked
exceptions thrown by a method
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/SerialVersionUID.scala | 2 | ||||
-rw-r--r-- | src/library/scala/throws.scala | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/src/library/scala/SerialVersionUID.scala b/src/library/scala/SerialVersionUID.scala index 152e9ba86e..f74d60fc1e 100644 --- a/src/library/scala/SerialVersionUID.scala +++ b/src/library/scala/SerialVersionUID.scala @@ -16,4 +16,4 @@ package scala; * Attribute for specifying the static SerialVersionUID field * of a serializable class */ -case class SerialVersionUID(uid: Long) extends Attribute {} +class SerialVersionUID(uid: Long) extends Attribute {} diff --git a/src/library/scala/throws.scala b/src/library/scala/throws.scala new file mode 100644 index 0000000000..c26559e19c --- /dev/null +++ b/src/library/scala/throws.scala @@ -0,0 +1,17 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +*/ + +// $Id$ + + +package scala; + +/** + * Attribute for specifying the exceptions thrown by a method. + */ +class throws(clazz: java.lang.Class) extends Attribute; |