java.util
Class ConcurrentModificationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.util.ConcurrentModificationException
All Implemented Interfaces:
Serializable

public class ConcurrentModificationException
extends RuntimeException

This runtime exception is thrown when a Collection is modified and an existing iterator on the Collection is used to modify the Collection as well.

See Also:
RuntimeException, Serialized Form

Constructor Summary
ConcurrentModificationException()
          Constructs a new instance of this class with its walkback filled in.
ConcurrentModificationException(java.lang.String detailMessage)
          Constructs a new instance of this class with its walkback and message filled in.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConcurrentModificationException

public ConcurrentModificationException()
Constructs a new instance of this class with its walkback filled in.


ConcurrentModificationException

public ConcurrentModificationException(java.lang.String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.

Parameters:
detailMessage - String The detail message for the exception.