Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for throw (0.17 sec)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/ReleaseNotesTransformer.java

                    }
                }
            };
            this.lock = this.in;
        }
    
        private Reader transform(Reader in) throws IOException {
            if (jqueryFiles == null || releaseNotesJavascript == null || baseCss == null || releaseNotesCss == null) {
                throw new GradleException("filter isn't ready to transform");
            }
    
            Document document = Jsoup.parse(CharStreams.toString(in));
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Apr 25 04:49:56 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-jar.gradle.kts

        queue.addAll(rootDependencies)
    
        while (queue.isNotEmpty()) {
            val dependency = when (val result = queue.removeFirst()) {
                is ResolvedDependencyResult -> result
                else -> throw IllegalArgumentException("Expected ResolvedDependencyResult")
            }
    
            if (dependency.isConstraint) {
                continue
            }
    
            val to = dependency.resolvedVariant
    
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Thu Mar 28 20:26:58 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/UpgradePropertiesRulePostProcess.java

            });
            if (!keptAccessors.isEmpty()) {
                String formattedLeft = CollectionUtils.join("\n", keptAccessors.keySet());
                throw new RuntimeException("The following accessors were upgraded, but didn't match any removed/changed method:\n\n" + formattedLeft);
            }
    
            // Find accessors that were removed but shouldn't be
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  4. build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java

                    pkill(pid);
                });
            }
        }
    
        private static void initExecutionMode(String[] args) {
            if (args.length != 1) {
                throw new IllegalArgumentException("Requires 1 param: " + Stream.of(ExecutionMode.values()).map(ExecutionMode::toString).collect(Collectors.joining("/")));
            }
            executionMode = ExecutionMode.valueOf(args[0]);
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 26 09:46:00 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  5. .cm/plugins/filters/readField/index.js

    function readField(objects, objectName, fieldName) {
        let group = Object.values(objects).find(s => s.name === objectName);
        if (group) {
            const result = group[fieldName];
            if (result === undefined) {
                throw "readField: field '" + fieldName + "' not found on object named '" + objectName + "' with fields '" + Object.keys(group) + "'";
            } else {
                return result;
            }
        } else {
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java

            }
            try {
                return new Gson().fromJson(new FileReader(file), new TypeToken<List<UpgradedProperty>>() {}.getType());
            } catch (FileNotFoundException e) {
                throw new UncheckedIOException(e);
            }
        }
    
        /**
         * Automatically accept changes that are valid property upgrades of a getter or setter.
         *
         * Here we automatically accept the following cases:
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  7. .cm/plugins/filters/byCodeowner/ignore/index.js

        )
    }
    
    const throwError = (message, Ctor) => {
        throw new Ctor(message)
    }
    
    const checkPath = (path, originalPath, doThrow) => {
        if (!isString(path)) {
            return doThrow(
                `path must be a string, but got \`${originalPath}\``,
                TypeError
            )
        }
    
        // We don't know if we should ignore EMPTY, so throw
        if (!path) {
    JavaScript
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  8. build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy

            given:
            repository.put('unkown', new TestDomainObject('unknown'))
    
            when:
            repository.get('unknown')
    
            then:
            UnknownDomainObjectException e = thrown()
            e.message == 'No meta-data is available for class \'unknown\'. Did you mean? [unkown]'
        }
    
        def getFailsForWrongPackage() {
            given:
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Sat Apr 06 02:21:33 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top