# Class ReportContainer.ImmutableViolationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.api.GradleException
org.gradle.api.reporting.ReportContainer.ImmutableViolationException

All Implemented Interfaces:
  `Serializable`

Enclosing interface:
  `ReportContainer<T extends Report>`

public static class ReportContainer.ImmutableViolationException extends GradleException
The exception thrown when any of this container's mutation methods are called.

This applies to the standard `Collection` methods such as `add()`, `remove()` and `clear()`.

Since:
  1.0
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ImmutableViolationException()`
  Creates a new `ImmutableViolationException`.

- ## Method Summary

  ### Methods inherited from class Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ImmutableViolationException

    public ImmutableViolationException()
    Creates a new `ImmutableViolationException`.
    Since:
      1.0