Package java.util

Class 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 Detail

      • 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 - the detail message for the exception.
      • ConcurrentModificationException

        public ConcurrentModificationException​(String detailMessage,
                                               Throwable cause)
        Constructs a new ConcurrentModificationException with the given detail message and cause.
        Since:
        1.7
      • ConcurrentModificationException

        public ConcurrentModificationException​(Throwable cause)
        Constructs a new ConcurrentModificationException with the given cause.
        Since:
        1.7