- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 136 for throwAsUncheckedException (0.28 sec)
-
platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/UncheckedException.java
} /** * Note: always throws the failure in some form. The return value is to keep the compiler happy. */ public static RuntimeException throwAsUncheckedException(Throwable t) { return throwAsUncheckedException(t, false); } /** * Note: always throws the failure in some form. The return value is to keep the compiler happy. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 14:28:48 UTC 2024 - 3.6K bytes - Viewed (0) -
platforms/core-runtime/io/src/main/java/org/gradle/internal/io/WriterTextStream.java
} catch (IOException e) { throw UncheckedException.throwAsUncheckedException(e); } } @Override public void endOfStream(@Nullable Throwable failure) { try { delegate.close(); } catch (IOException e) { if (failure == null) { throw UncheckedException.throwAsUncheckedException(e); } } if (failure != null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 12 08:51:13 UTC 2024 - 1.5K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/process/internal/worker/request/Receiver.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 13:26:04 UTC 2024 - 4.8K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/ExclusiveCacheAccessingWorker.java
throw UncheckedException.throwAsUncheckedException(e); } } @Override public <T> T read(Supplier<T> task) { FutureTask<T> futureTask = new FutureTask<T>(task::get); addToQueue(futureTask); try { return futureTask.get(); } catch (ExecutionException e) { throw UncheckedException.throwAsUncheckedException(e.getCause());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 8.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/instance/ManagedProxyFactory.java
return constructor.newInstance(state, null); } catch (InvocationTargetException e) { throw UncheckedException.throwAsUncheckedException(e.getTargetException()); } catch (Exception e) { throw UncheckedException.throwAsUncheckedException(e); } } /** * Generates a view of the given type. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 5.3K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/ClasspathUtil.java
try { classpathFiles.add(new File(toURI(url))); } catch (URISyntaxException e) { throw UncheckedException.throwAsUncheckedException(e); } } } } }.visit(classLoader); } public static File getClasspathForClass(String targetClassName) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 7.2K bytes - Viewed (0) -
platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/ExceptionReplacingObjectInputStream.java
@Override public Object transform(Object o) { try { return doResolveObject(o); } catch (IOException e) { throw UncheckedException.throwAsUncheckedException(e); } } }; public ExceptionReplacingObjectInputStream(InputStream inputSteam, ClassLoader classLoader) throws IOException { super(inputSteam, classLoader);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 15 16:06:56 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/ide/ide/src/main/java/org/gradle/plugins/ide/internal/generator/AbstractPersistableConfigurationObject.java
try { load(inputStream); } finally { inputStream.close(); } } catch (Exception e) { throw UncheckedException.throwAsUncheckedException(e); } } @Override public void loadDefaults() { try { String defaultResourceName = getDefaultResourceName();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 2.8K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/main/java/org/gradle/internal/dispatch/ReflectionDispatch.java
method.invoke(target, message.getArguments()); } catch (InvocationTargetException e) { throw UncheckedException.throwAsUncheckedException(e.getCause()); } catch (Throwable throwable) { throw UncheckedException.throwAsUncheckedException(throwable); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 05 19:36:14 UTC 2023 - 1.4K bytes - Viewed (0) -
platforms/software/security/src/main/java/org/gradle/plugins/signing/signatory/pgp/PgpSignatory.java
writeSignatureTo(signatureDestination, signature); } catch (IOException e) { throw new UncheckedIOException(e); } catch (PGPException e) { throw UncheckedException.throwAsUncheckedException(e); } } @Override public String getKeyId() { PgpKeyId id = new PgpKeyId(secretKey.getKeyID()); return id.getAsHex(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 4.6K bytes - Viewed (0)