- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for UnknownDomainObjectException (0.43 sec)
-
subprojects/core/src/main/java/org/gradle/api/internal/DelegatingNamedDomainObjectSet.java
@Override public T getAt(String name) throws UnknownDomainObjectException { return getDelegate().getAt(name); } @Override public T getByName(String name) throws UnknownDomainObjectException { return getDelegate().getByName(name); } @Override public T getByName(String name, Closure configureClosure) throws UnknownDomainObjectException {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 01 08:18:33 UTC 2023 - 4.5K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/CustomNamedDomainObjectCollectionTest.groovy
} @Override T getByName(String name) throws UnknownDomainObjectException { return null } @Override T getByName(String name, Closure configureClosure) throws UnknownDomainObjectException { return null } @Override T getByName(String name, Action<? super T> configureAction) throws UnknownDomainObjectException { return null } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 01 08:21:31 UTC 2023 - 5.8K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ProjectExtensionsTest.kt
.thenReturn(convention) whenever(convention.getByType(eq(conventionType))) .thenThrow(UnknownDomainObjectException::class.java) try { project.the<CustomConvention>() fail("UnknownDomainObjectException not thrown") } catch (ex: UnknownDomainObjectException) { // expected } inOrder(convention) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 6.4K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/NamedDomainObjectCollection.java
* * @param name The object name * @return The object with the given name. Never returns null. * @throws UnknownDomainObjectException when there is no such object in this collection. */ T getByName(String name) throws UnknownDomainObjectException; /** * Locates an object by name, failing if there is no such object. The given configure closure is executed against
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 01 12:50:52 UTC 2023 - 12.4K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-integ-tests/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/plugins/ProjectTheExtensionCrossVersionSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 07 13:25:10 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ExtensionContainerExtensions.kt
*/ package org.gradle.kotlin.dsl import org.gradle.api.UnknownDomainObjectException import org.gradle.api.plugins.ExtensionContainer import kotlin.reflect.KProperty /** * Looks for the extension of a given name. If none found it will throw an exception. * * @param name extension name * @return extension * @throws [UnknownDomainObjectException] When the given extension is not found. *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 4.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/extensibility/ExtensionsStorage.java
return types; } /** * Doesn't actually return anything. Always throws a {@link UnknownDomainObjectException}. * * @return Nothing. */ private UnknownDomainObjectException unknownExtensionException(final String name) { throw new UnknownDomainObjectException("Extension with name '" + name + "' does not exist. Currently registered extension names: " + extensions.keySet()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Nov 17 11:25:34 UTC 2023 - 6.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectCollectionExtensions.kt
* * If an object with the given [name] is not found, [UnknownDomainObjectException] is thrown. * If the object is found but cannot be cast to the expected type [T], [IllegalArgumentException] is thrown. * * @param name object name * @return the object, never null * @throws [UnknownDomainObjectException] When the given object is not found.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 15.3K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy
* limitations under the License. */ package gradlebuild.docs.model import java.nio.file.Files import org.gradle.api.Action import org.gradle.api.UnknownDomainObjectException import spock.lang.Specification import spock.lang.TempDir class SimpleClassMetaDataRepositoryTest extends Specification { @TempDir File tmpDir
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Apr 06 02:21:33 UTC 2024 - 3.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtensionsStorageTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.4K bytes - Viewed (0)