Class ConcurrentModificationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.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.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newConcurrentModificationExceptionwith the current stack trace filled in.ConcurrentModificationException(String detailMessage) Constructs a newConcurrentModificationExceptionwith the current stack trace and message filled in. -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, 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.
-