diff options
author | Burak Emir <emir@epfl.ch> | 2006-10-10 14:25:20 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2006-10-10 14:25:20 +0000 |
commit | de4eb301bc40ca4b7cb315843f660168451e728b (patch) | |
tree | d77ad3b9a71d4bdd8287a99f91163e96276d02fb /src/library/scala/collection/mutable/MutableList.scala | |
parent | 2995f1a6a4eb2c95399e125500ce6143f9ce7465 (diff) | |
download | scala-de4eb301bc40ca4b7cb315843f660168451e728b.tar.gz scala-de4eb301bc40ca4b7cb315843f660168451e728b.tar.bz2 scala-de4eb301bc40ca4b7cb315843f660168451e728b.zip |
exceptions
Diffstat (limited to 'src/library/scala/collection/mutable/MutableList.scala')
-rw-r--r-- | src/library/scala/collection/mutable/MutableList.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/mutable/MutableList.scala b/src/library/scala/collection/mutable/MutableList.scala index 69e778ab66..6e5059d4a5 100644 --- a/src/library/scala/collection/mutable/MutableList.scala +++ b/src/library/scala/collection/mutable/MutableList.scala @@ -32,7 +32,7 @@ trait MutableList[A] extends Seq[A] with PartialFunction[Int, A] { * yields an error if the element does not exist. */ def apply(n: Int): A = get(n) match { - case None => error("element not found") + case None => throw new java.util.NoSuchElementException("element not found") case Some(value) => value } |