Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 202 for throwAsUncheckedException (0.34 sec)

  1. platforms/software/resources-gcs/src/main/java/org/gradle/internal/resource/transport/gcp/gcs/GcsConnectorFactory.java

            try {
                return new GcsResourceConnector(GcsClient.create(new GcsConnectionProperties()));
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/ReflectionBasedServiceMethod.java

        @Override
        public Object invoke(Object target, @Nullable Object... args) {
            try {
                return javaMethod.invoke(target, args);
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        @Override
        public String toString() {
            return javaMethod.toString();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 17 11:08:22 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/util/RelativePathUtil.java

            logDeprecation();
            try {
                return TextUtil.normaliseFileSeparators(from.toPath().relativize(to.toPath()).toString());
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 07 08:48:40 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/client-services/src/main/java/org/gradle/internal/daemon/client/clientinput/DaemonClientInputForwarder.java

                        nread = reader.read(buffer);
                    } catch (IOException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                    if (nread < 0) {
                        maybeClosed();
                    } else {
                        String text = new String(buffer, 0, nread);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/MethodHandleBasedServiceMethod.java

        public Object invoke(Object target, @Nullable Object... args) {
            try {
                return method.bindTo(target).invokeWithArguments(args);
            } catch (Throwable e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Nov 17 11:08:22 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/api/internal/GeneratedSubclasses.java

                try {
                    return (Class<?>) type.getMethod("generatedFrom").invoke(null);
                } catch (Exception e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
            return type;
        }
    
        public static Class<?> unpackType(Object object) {
            if (object instanceof GeneratedSubclass) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/TestResultHandler.groovy

                throw new AssertionError("Timeout waiting for operation to complete.")
            }
        }
    
        def failWithFailure() {
            if (failure) {
                throw UncheckedException.throwAsUncheckedException(BlockingResultHandler.attachCallerThreadStackTrace(failure))
            }
        }
    
        def assertNoFailure() {
            if (failure == null) {
                return true
            } else {
                throw failure
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/verification/DefaultKeyServers.java

            uri("https://pgp.mit.edu")
        );
    
        private static URI uri(String uri) {
            try {
                return new URI(uri);
            } catch (URISyntaxException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        public static List<URI> getOrDefaults(List<URI> uris) {
            if (uris.isEmpty()) {
                return DEFAULT_KEYSERVERS;
            }
            return uris;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultCacheCoordinator.java

                    crossProcessCacheAccess.open();
                    open = true;
                } catch (Throwable throwable) {
                    crossProcessCacheAccess.close();
                    throw UncheckedException.throwAsUncheckedException(throwable);
                }
            });
        }
    
        @Override
        public void cleanup() {
            if (cleanupAction != null) {
                if (cacheAccessWorker != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 01 12:21:15 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/project/antbuilder/DefaultIsolatedAntBuilder.java

            try {
                return antAdapterLoader.loadClass(className).getConstructor().newInstance();
            } catch (Exception e) {
                // should never happen
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        // We *absolutely* need to avoid polluting the project with ClassInfo from *our* classloader
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 02 18:37:54 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top