Class ModelViewClosedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.gradle.api.GradleException
org.gradle.model.ReadOnlyModelViewException
org.gradle.model.ModelViewClosedException
- All Implemented Interfaces:
Serializable, org.gradle.internal.exceptions.ResolutionProvider
Deprecated.
Thrown when at attempt is made to mutate a subject of a rule after the rule has completed.
This can potentially happen when a reference to the subject is retained during a rule and then used afterwards, Such as when an anonymous inner class or closure "closes over" the subject.
- Since:
- 2.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModelViewClosedException(org.gradle.model.internal.core.ModelPath path, org.gradle.model.internal.type.ModelType<?> type, org.gradle.model.internal.core.rule.describe.ModelRuleDescriptor ruleDescriptor) Deprecated.Creates a newModelViewClosedException. -
Method Summary
Methods inherited from class ReadOnlyModelViewException
createMessageMethods inherited from class GradleException
addResolution, clearResolutions, getResolutionsMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ModelViewClosedException
public ModelViewClosedException(org.gradle.model.internal.core.ModelPath path, org.gradle.model.internal.type.ModelType<?> type, org.gradle.model.internal.core.rule.describe.ModelRuleDescriptor ruleDescriptor) Deprecated.Creates a newModelViewClosedException.- Since:
- 2.1
-
cpp-application,cpp-library,swift-application,swift-library,xctest) instead.