public class ConcurrentModificationException

  1. Object
  2. Throwable
  3. Exception
  4. RuntimeException
  5. ConcurrentModificationException
An ConcurrentModificationException is thrown when a Collection is modified and an existing iterator on the Collection is used to modify the Collection as well.

Constructors

public ConcurrentModificationException()Constructs a new ConcurrentModificationException with the current stack trace filled in.
public ConcurrentModificationException(String detailMessage)Constructs a new ConcurrentModificationException with the current stack trace and message filled in.

Inherited methods

Constructor details

ConcurrentModificationException

public ConcurrentModificationException()
Constructs a new ConcurrentModificationException with the current stack trace filled in.

ConcurrentModificationException

public ConcurrentModificationException(String detailMessage)
Constructs a new ConcurrentModificationException with the current stack trace and message filled in.

Parameters

detailMessage String
the detail message for the exception.