Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 214 for throws (0.2 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredFileAccess.groovy

                    ((Supplier<Object>) () -> {
                        try {
                            new FileInputStream(new File("$filePath")).close();
                        } catch (IOException e) {
                            throw new RuntimeException(e);
                        }
                        return null;
                    }).get()"""
                }
    
                @Override
                String getGroovyExpression() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. subprojects/diagnostics/src/main/java/org/gradle/api/reporting/dependencies/HtmlDependencyReportTask.java

        @Inject
        protected ObjectFactory getObjectFactory() {
            throw new UnsupportedOperationException();
        }
    
        @Inject
        protected VersionSelectorScheme getVersionSelectorScheme() {
            throw new UnsupportedOperationException();
        }
    
        @Inject
        protected VersionComparator getVersionComparator() {
            throw new UnsupportedOperationException();
        }
    
        @Inject
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 13:33:20 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. maven-embedder/src/main/java/org/apache/maven/cli/transfer/FileSizeFormat.java

        public void formatProgress(StringBuilder builder, long progressedSize, long size) {
            if (progressedSize < 0L) {
                throw new IllegalArgumentException("progressed file size cannot be negative: " + size);
            }
            if (size >= 0 && progressedSize > size) {
                throw new IllegalArgumentException(
                        "progressed file size cannot be greater than size: " + progressedSize + " > " + size);
            }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 21:48:41 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/GroovyCodecs.kt

                // with the delegate
                if (targetMetadata.hasProperty(null, propertyName) == null) {
                    if (propertyName == "class") {
                        return javaClass
                    }
                    throw MissingPropertyException(propertyName)
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. src/runtime/mfinal.go

    		return
    	}
    	e := efaceOf(&obj)
    	etyp := e._type
    	if etyp == nil {
    		throw("runtime.SetFinalizer: first argument is nil")
    	}
    	if etyp.Kind_&abi.KindMask != abi.Pointer {
    		throw("runtime.SetFinalizer: first argument is " + toRType(etyp).string() + ", not pointer")
    	}
    	ot := (*ptrtype)(unsafe.Pointer(etyp))
    	if ot.Elem == nil {
    		throw("nil elem type!")
    	}
    
    	if inUserArenaChunk(uintptr(e.data)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/AbstractProblemsListener.kt

            // Let IO and configuration cache exceptions surface to the top.
            if (error is IOException || error is ConfigurationCacheThrowable) {
                throw error
            }
            throw ConfigurationCacheError(
                "Configuration cache state could not be cached: $trace: ${StructuredMessage.build(message)}",
                error.maybeUnwrapInvocationTargetException()
            )
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/instrumentation-agent-services/src/main/java/org/gradle/internal/instrumentation/agent/AgentControl.java

                return method;
            } catch (NoSuchMethodException e) {
                throw new IllegalArgumentException(e);
            }
        }
    
        private static boolean callStaticAgentMethod(Method method, Object... args) {
            try {
                return (boolean) method.invoke(null, args);
            } catch (IllegalAccessException e) {
                throw new IllegalArgumentException(e);
            } catch (InvocationTargetException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheRepository.kt

            override fun outputStream(): OutputStream =
                throw UnsupportedOperationException()
    
            override fun inputStream(): InputStream =
                file.also(::markAccessed).inputStream()
    
            override fun delete() {
                throw UnsupportedOperationException()
            }
    
            override fun moveFrom(file: File) {
                throw UnsupportedOperationException()
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/test/groovy/org/gradle/integtests/tooling/fixture/GradleVersionSpecTest.groovy

            then:
            thrown(RuntimeException)
        }
    
        def "RuntimeExcpetion is thrown if a version lower than the minimal tested is specified"() {
            given:
            def spec = new GradleVersionSpec("3.0")
    
            when:
            spec.toSpec("<1.3")
    
            then:
            thrown(RuntimeException)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/client/DefaultDaemonStarter.java

                }
    
                return daemonGreeter.parseDaemonOutput(outputConsumer.getProcessOutput(), args);
            } catch (GradleException e) {
                throw e;
            } catch (Exception e) {
                throw new GradleException("Could not start Gradle daemon.", e);
            } finally {
                LOGGER.info("An attempt to start the daemon took {}.", clock.getElapsed());
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top