An exception to throw when attempt to modify a container occurs when such omdification is not allowed.
In Julian, a container can be iterated with language level support: for (var a : list) {
... ... // Within this block the list is locked.
}
However, during the iteration the list will be locked down by the current thread. If another thread attempts to modify the container, such as by adding or removing data, this exception will be raised. Modifying from the current thread, however, will not cause this error, but can lead to undefined iteration results.
Parent Class
Type | Name | Signature |
---|---|---|
constructor | ConcurrentModificationException | public ConcurrentModificationException(string) |
public ConcurrentModificationException(string message)
Create a standard ConcurrentModificationException instance. While entirely legal, it's not recommended for a user to create such instances.
Parameters