Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 131 for throwAsUncheckedException (1.13 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-runtime/native/src/main/java/org/gradle/internal/nativeintegration/filesystem/services/JdkFallbackHelper.java

            }
            try {
                return Cast.uncheckedCast(handlerClass.getConstructor().newInstance());
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/MethodHandleBasedServiceMethodFactory.java

                // Force loading to check if method handle is supported
                Class.forName("java.lang.invoke.MethodHandle");
            } catch (ClassNotFoundException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        @Override
        public ServiceMethod toServiceMethod(Method method) {
            if (Modifier.isPublic(method.getModifiers()) && Modifier.isPublic(method.getDeclaringClass().getModifiers())) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top