Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.util

Class ConcurrentModificationException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--java.lang.RuntimeException
         |
         +--java.util.ConcurrentModificationException


public class ConcurrentModificationException

extends RuntimeException

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:See Also:

Constructor Summary

ConcurrentModificationException()

Constructs a ConcurrentModificationException with no detail message.
ConcurrentModificationException(java.lang.String detail)

Constructs a ConcurrentModificationException with a detail message.

Constructor Details

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: