For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

InvalidModelException

Deprecated

The Gradle software model is deprecated and will be removed in Gradle 10. Use the new component model (e.g. cpp-application, cpp-library, swift-application, swift-library, xctest) instead.

Thrown when a component model is declared in an invalid way.

Since

2.4

Constructors

Link copied to clipboard
constructor(message: String)
Creates a new InvalidModelException.
constructor(message: String, cause: Exception)
Creates a new InvalidModelException.

Properties

Link copied to clipboard
open val cause: Throwable
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun addResolution(resolution: String)
Adds a potential resolution to this exception.
Link copied to clipboard
fun addSuppressed(exception: Throwable)
Link copied to clipboard
Clears the resolutions from this exception.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMessage(): String
Link copied to clipboard
Link copied to clipboard
open fun initCause(cause: Throwable): Throwable
Link copied to clipboard
open fun printStackTrace()
Link copied to clipboard
open fun toString(): String