Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 115 for throwAsUncheckedException (0.29 sec)

  1. platforms/extensibility/unit-test-fixtures/src/main/java/org/gradle/testfixtures/internal/TestInMemoryIndexedCache.java

                InputStreamBackedDecoder decoder = new InputStreamBackedDecoder(instr);
                return valueSerializer.read(decoder);
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    
        @Override
        public V get(final K key, final Function<? super K, ? extends V> producer) {
            return producerGuard.guardByKey(key, () -> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/store/DefaultBinaryStore.java

    import java.io.Closeable;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.RandomAccessFile;
    
    import static org.gradle.internal.UncheckedException.throwAsUncheckedException;
    
    class DefaultBinaryStore implements BinaryStore, Closeable {
        private File file;
        private StringDeduplicatingKryoBackedEncoder encoder;
        private long offset = -1;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/locklistener/FileLockCommunicator.java

    import static org.gradle.cache.internal.locklistener.FileLockPacketType.UNLOCK_REQUEST_CONFIRMATION;
    import static org.gradle.internal.UncheckedException.throwAsUncheckedException;
    
    public class FileLockCommunicator {
        private static final Logger LOGGER = LoggerFactory.getLogger(FileLockCommunicator.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:49 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/SendPartialResponseThenBlock.java

                    }
                    try {
                        condition.await(waitMs, TimeUnit.MILLISECONDS);
                    } catch (InterruptedException e) {
                        throw UncheckedException.throwAsUncheckedException(e);
                    }
                }
                if (failure != null) {
                    throw failure;
                }
            } finally {
                lock.unlock();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/configuration/GradleLauncherMetaData.java

                for (String arg : args) {
                    output.append(' ');
                    output.append(arg);
                }
            } catch (IOException e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:55:06 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top