Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for throwAsUncheckedException (0.35 sec)

  1. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java

                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
                LOGGER.debug("Command execution: finished waiting for {}. Result {} with state {}", currentCommandExecution, result, state);
                if (result instanceof Throwable) {
                    throw UncheckedException.throwAsUncheckedException((Throwable) result);
                }
                if (result != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/xml/XmlTransformer.java

                    writeTo(outputStream);
                } catch (IOException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
    
            public void writeTo(OutputStream stream) {
                try(Writer writer = new BufferedWriter(new OutputStreamWriter(stream, StandardCharsets.UTF_8))) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 15 08:15:53 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/build-operations/src/testFixtures/groovy/org/gradle/internal/operations/TestBuildOperationRunner.java

                } catch (Throwable failure) {
                    if (record.failure == null) {
                        record.failure = failure;
                    }
                    throw throwAsUncheckedException(failure);
                }
            }
    
            private <T> T call(CallableBuildOperation<T> buildOperation) {
                Record record = new Record(buildOperation.description().build());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:33:49 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DefaultDaemonConnection.java

                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
    
            public Object take(long timeoutValue, TimeUnit timeoutUnits) {
                Object result;
                try {
                    result = queue.poll(timeoutValue, timeoutUnits);
                } catch (InterruptedException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 16K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/metaobject/BeanDynamicObject.java

                MISSING_METHOD_METHOD = MetaClassImpl.class.getDeclaredField("methodMissing");
                MISSING_METHOD_METHOD.setAccessible(true);
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        public BeanDynamicObject(Object bean) {
            this(bean, null, true, true, StringToEnumTransformer.INSTANCE, StringToEnumTransformer.INSTANCE);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  8. subprojects/core/src/testFixtures/groovy/org/gradle/util/internal/MultithreadedTestRule.java

                        setState(State.Unblocking, State.Failed);
                        throw UncheckedException.throwAsUncheckedException(e);
                    } finally {
                        setBlockingThread(null);
                    }
                } catch (InterruptedException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
    
            private ThreadHandle getBlockingThread() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/JavaPropertyReflectionUtil.java

            try {
                return object.getClass().getMethod("toString").getDeclaringClass() == Object.class;
            } catch (java.lang.NoSuchMethodException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        /**
         * Resolves the return type of a method in a given class.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultFileLockManager.java

    import java.util.function.LongSupplier;
    import java.util.function.Supplier;
    
    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static org.gradle.internal.UncheckedException.throwAsUncheckedException;
    
    /**
     * Uses file system locks on a lock file per target file.
     */
    public class DefaultFileLockManager implements FileLockManager {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top