Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for UnknownDomainObjectException (0.34 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/UnknownDomainObjectException.java

     */
    package org.gradle.api;
    
    /**
     * <p>A {@code UnknownDomainObjectException} is the super class of all exceptions thrown when a given domain object
     * cannot be located.</p>
     */
    public class UnknownDomainObjectException extends GradleException {
        public UnknownDomainObjectException(String message) {
            super(message);
        }
    
        public UnknownDomainObjectException(String message, Throwable cause) {
            super(message, cause);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 15 16:06:48 UTC 2017
    - 1K bytes
    - Viewed (0)
  2. subprojects/core-api/src/main/java/org/gradle/api/plugins/ExtensionContainer.java

         *
         * @param type extension type
         * @return extension, never null
         * @throws UnknownDomainObjectException When the given extension is not found.
         */
        <T> T getByType(Class<T> type) throws UnknownDomainObjectException;
    
        /**
         * Looks for the extension of a given type (useful to avoid casting). If none found it will throw an exception.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 05 16:56:20 UTC 2019
    - 9.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/model/ClassMetaDataRepository.java

     * limitations under the License.
     */
    package gradlebuild.docs.model;
    
    import groovy.lang.Closure;
    import org.gradle.api.UnknownDomainObjectException;
    
    public interface ClassMetaDataRepository<T> {
        T get(String fullyQualifiedClassName) throws UnknownDomainObjectException;
    
        T find(String fullyQualifiedClassName);
    
        void put(String fullyQualifiedClassName, T metaData);
    
        void each(Closure cl);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 989 bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/api/artifacts/UnknownConfigurationException.java

     * limitations under the License.
     */
    package org.gradle.api.artifacts;
    
    import org.gradle.api.UnknownDomainObjectException;
    
    /**
     * <p>An {@code UnknownConfigurationException} is thrown when a configuration referenced by name cannot be found.</p>
     */
    public class UnknownConfigurationException extends UnknownDomainObjectException {
        public UnknownConfigurationException(String message) {
            super(message);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 15 16:06:48 UTC 2017
    - 1003 bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. platforms/core-configuration/kotlin-dsl-integ-tests/src/crossVersionTest/groovy/org/gradle/kotlin/dsl/plugins/ProjectTheExtensionCrossVersionSpec.groovy

                    the<Unregistered>()
                    throw Exception("UnknownDomainObjectException not thrown")
                } catch(ex: UnknownDomainObjectException) {}
    
                try {
                    the(Unregistered::class)
                    throw Exception("UnknownDomainObjectException not thrown")
                } catch(ex: UnknownDomainObjectException) {}
    
                try {
                    configure<Unregistered> {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 07 13:25:10 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. 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)
Back to top