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.

InvalidUserCodeException

constructor()(source)
constructor(message: String)(source)

Creates a new InvalidUserCodeException.

Since

1.4


constructor(message: String, cause: Throwable)(source)

Creates a new InvalidUserCodeException.

There is deliberately no (String, Iterable) overload carrying resolution suggestions. It would make new InvalidUserCodeException(message, null) ambiguous with this constructor: Java and Kotlin would reject such a call at compile time, and Groovy, which resolves overloads from the runtime types, would select the resolutions constructor and fail on the null. To attach resolutions, use InvalidUserCodeException followed by addResolution.

Since

1.4