Package java.util
Class ConcurrentModificationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.ConcurrentModificationException
- All Implemented Interfaces:
Serializable
public class ConcurrentModificationException extends RuntimeException
An
ConcurrentModificationException 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
Constructors Constructor Description ConcurrentModificationException()Constructs a newConcurrentModificationExceptionwith the current stack trace filled in.ConcurrentModificationException(String detailMessage)Constructs a newConcurrentModificationExceptionwith the current stack trace and message filled in.ConcurrentModificationException(String detailMessage, Throwable cause)Constructs a newConcurrentModificationExceptionwith the given detail message and cause.ConcurrentModificationException(Throwable cause)Constructs a newConcurrentModificationExceptionwith the given cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConcurrentModificationException
public ConcurrentModificationException()Constructs a newConcurrentModificationExceptionwith the current stack trace filled in. -
ConcurrentModificationException
Constructs a newConcurrentModificationExceptionwith the current stack trace and message filled in.- Parameters:
detailMessage- the detail message for the exception.
-
ConcurrentModificationException
Constructs a newConcurrentModificationExceptionwith the given detail message and cause.- Since:
- 1.7
-
ConcurrentModificationException
Constructs a newConcurrentModificationExceptionwith the given cause.- Since:
- 1.7
-