- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 136 for throwAsUncheckedException (0.42 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/service/ReflectionBasedServiceMethod.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Nov 17 11:08:22 UTC 2023 - 1.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/util/RelativePathUtil.java
logDeprecation(); try { return TextUtil.normaliseFileSeparators(from.toPath().relativize(to.toPath()).toString()); } catch (Exception e) { throw UncheckedException.throwAsUncheckedException(e); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Sep 07 08:48:40 UTC 2022 - 1.8K bytes - Viewed (0) -
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)