Skip to content

Most visited

Recently visited

navigation
Added in API level 1

ConcurrentModificationException

public class ConcurrentModificationException
extends RuntimeException

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:

Summary

Public constructors

ConcurrentModificationException()

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

ConcurrentModificationException(String detailMessage)

Constructs a new ConcurrentModificationException with the current stack trace and message filled in.

ConcurrentModificationException(String detailMessage, Throwable cause)

Constructs a new ConcurrentModificationException with the given detail message and cause.

ConcurrentModificationException(Throwable cause)

Constructs a new ConcurrentModificationException with the given cause.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

ConcurrentModificationException

Added in API level 1
ConcurrentModificationException ()

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

ConcurrentModificationException

Added in API level 1
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.

ConcurrentModificationException

Added in API level 19
ConcurrentModificationException (String detailMessage, 
                Throwable cause)

Constructs a new ConcurrentModificationException with the given detail message and cause.

Parameters
detailMessage String
cause Throwable

ConcurrentModificationException

Added in API level 19
ConcurrentModificationException (Throwable cause)

Constructs a new ConcurrentModificationException with the given cause.

Parameters
cause Throwable
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.