Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 217 for throwAsUncheckedException (0.36 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/IoActions.java

            try {
                action.execute(resource);
            } catch (Throwable t) {
                closeQuietly(resource);
                throw UncheckedException.throwAsUncheckedException(t);
            }
            uncheckedClose(resource);
        }
    
        public static <T extends Closeable, R> R withResource(T resource, InternalTransformer<R, ? super T> action) {
            R result;
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/build-state/src/main/java/org/gradle/internal/buildprocess/execution/BuildSessionLifecycleBuildActionExecutor.java

                    // whereas console failure logging based on the _thrown exception_ happens up outside session scope. It would be better to refactor so that a result can be returned from here
                    throw UncheckedException.throwAsUncheckedException(t);
                } else {
                    // Created a result which may contain failures. Combine this failure with any failures that happen to be packaged in the result
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/exec/BuildTreeLifecycleBuildActionExecutor.java

                    // whereas console failure logging based on the _thrown exception_ happens up outside session scope. It would be better to refactor so that a result can be returned from here
                    throw UncheckedException.throwAsUncheckedException(t);
                } else {
                    // Cleanup has failed, combine the cleanup failure with other failures that may be packed in the result
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/InMemoryDecoratedCache.java

                    Object out = delegate.get(key);
                    return out == null ? NULL : out;
                });
            } catch (UncheckedExecutionException | ExecutionException e) {
                throw UncheckedException.throwAsUncheckedException(e.getCause());
            }
            if (value == NULL) {
                return null;
            } else {
                return Cast.uncheckedCast(value);
            }
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. subprojects/core/src/main/java/org/gradle/deployment/internal/SimpleBlockingDeployment.java

            try {
                while (outOfDate) {
                    try {
                        upToDate.await();
                    } catch (InterruptedException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
                return delegate.status();
            } finally {
                lock.unlock();
            }
        }
    
        @Override
        public void outOfDate() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 23 18:00:07 UTC 2022
    - 2.1K bytes
    - Viewed (0)
Back to top