java.util
Class ConcurrentModificationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--java.util.ConcurrentModificationException
Exception that is thrown by the collections classes when it is detected that
a modification has been made to a data structure when this is not allowed,
such as when a collection is structurally modified while an Iterator is
operating over it. In cases where this can be detected, a
ConcurrentModificationException will be thrown. An Iterator that detects
this condition is referred to as fail-fast. Notice that this can occur
even in single-threaded designs, if you call methods out of order.
Since:Authors:- Warren Levy <warrenl@cygnus.com>
- Eric Blake <ebb9@email.byu.edu>
See Also:
ConcurrentModificationException
public ConcurrentModificationException()
Constructs a ConcurrentModificationException with no detail message.
ConcurrentModificationException
public ConcurrentModificationException(java.lang.String detail)
Constructs a ConcurrentModificationException with a detail message.
Parameters: