Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 217 for throwAsUncheckedException (0.37 sec)

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

            }
    
            try {
                return runnable.get();
            } catch (InterruptedException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            } catch (ExecutionException e) {
                throw UncheckedException.throwAsUncheckedException(e.getCause());
            }
        }
    
        @Override
        public void complete() {
            finished.countDown();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/execution/DefaultCancellableOperationManager.java

                                    break;
                                }
                            }
                        } catch (IOException e) {
                            throw UncheckedException.throwAsUncheckedException(e);
                        }
                    }
                });
                operation.execute(cancellationToken);
                operationCompleted.set(true);
            } finally {
                if (handle != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 07 08:18:46 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/transport/NetworkOperationBackOffAndRetry.java

                    failure = throwable;
                }
                if (!NetworkingIssueVerifier.isLikelyTransientNetworkingIssue(failure) || retries == maxDeployAttempts) {
                    throw UncheckedException.throwAsUncheckedException(failure);
                } else {
                    LOGGER.info("Error in '{}'. Waiting {}ms before next retry, {} retries left", operation, backoff, maxDeployAttempts - retries);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 04:09:56 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/ExceptionReplacingObjectOutputStream.java

            @Override
            public Object transform(Object obj) {
                try {
                    return doReplaceObject(obj);
                } catch (IOException e) {
                    throw UncheckedException.throwAsUncheckedException(e);
                }
            }
        };
    
        public ExceptionReplacingObjectOutputStream(OutputStream outputSteam) throws IOException {
            super(outputSteam);
            enableReplaceObject(true);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/CompositeStoppable.java

                    public void stop() {
                        try {
                            closeable.close();
                        } catch (IOException e) {
                            throw UncheckedException.throwAsUncheckedException(e);
                        }
                    }
                };
            }
            return NO_OP_STOPPABLE;
        }
    
        @Override
        public synchronized void stop() {
            Throwable failure = null;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/ClassLoaderVisitor.java

    import java.net.MalformedURLException;
    import java.net.URL;
    import java.net.URLClassLoader;
    
    import static java.lang.ClassLoader.getSystemClassLoader;
    import static org.gradle.internal.UncheckedException.throwAsUncheckedException;
    
    public class ClassLoaderVisitor {
        private static final String JAVA_CLASS_PATH = "java.class.path";
        private final ClassLoader stopAt;
    
        public ClassLoaderVisitor() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/consumer/BlockingResultHandler.java

            Object result;
            try {
                result = queue.take();
            } catch (InterruptedException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
    
            if (result instanceof Throwable) {
                throw UncheckedException.throwAsUncheckedException(attachCallerThreadStackTrace((Throwable) result));
            }
            if (result == NULL) {
                return null;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/DefaultNodeInitializerRegistry.java

            try {
                return cache.get(nodeInitializerContext);
            } catch (ExecutionException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            } catch (UncheckedExecutionException e) {
                throw UncheckedException.throwAsUncheckedException(e.getCause());
            }
        }
    
        private <T> NodeInitializer extractNodeInitializer(NodeInitializerContext<T> context) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/process/internal/worker/DefaultWorkerProcess.java

                        }
                    } catch (InterruptedException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
                if (connection == null) {
                    if (processFailure != null) {
                        throw UncheckedException.throwAsUncheckedException(processFailure);
                    } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 14:39:33 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. 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)
Back to top