Class InvalidUserCodeException

All Implemented Interfaces:
Serializable, org.gradle.internal.exceptions.ResolutionProvider

public class InvalidUserCodeException extends GradleException
A InvalidUserCodeException is thrown when user-provided code cannot be executed.
Since:
1.4
See Also:
  • Constructor Details

    • InvalidUserCodeException

      public InvalidUserCodeException()
      Creates a new InvalidUserCodeException.
      Since:
      1.4
    • InvalidUserCodeException

      public InvalidUserCodeException(String message)
      Creates a new InvalidUserCodeException.
      Since:
      1.4
    • InvalidUserCodeException

      public InvalidUserCodeException(String message, Throwable cause)
      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(String) followed by GradleException.addResolution(String).

      Since:
      1.4