Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 270 for RuntimeException (0.13 sec)

  1. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt

                    }
                }
                .build()
            val response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString())
            if (response.statusCode() > 399) {
                throw RuntimeException("Failed to get pull requests: $uri ${response.statusCode()} ${response.body()}")
            }
            return Gson().fromJson(response.body(), klass)
        }
    
        private
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:28 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

            } catch (InvalidVersionSpecificationException e) {
                throw new RuntimeException(e);
            }
        }
    
        private VersionRange parseVersionRange(String spec) {
            try {
                return versionScheme.parseVersionRange(spec);
            } catch (InvalidVersionSpecificationException e) {
                throw new RuntimeException(e);
            }
        }
    
        @SuppressWarnings({"unchecked", "rawtypes"})
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleKotlinDslReferencePlugin.java

                return new URI("https://github.com/gradle/gradle/blob/" + commitId + "/" + relativeLocation);
            } catch (URISyntaxException e) {
                throw new RuntimeException(e);
            }
        }
    
        private static DokkatooExtension getDokkatooExtension(Project project) {
            return project.getExtensions().getByType(DokkatooExtension.class);
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 19 15:07:24 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java

                            rr.getPolicy(true).getUpdatePolicy(),
                            rr.getPolicy(false).getChecksumPolicy());
    
                } catch (Exception e) {
                    throw new RuntimeException("Unable to create repository", e);
                }
            } else {
                // TODO
                throw new UnsupportedOperationException("Not yet implemented");
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

            },
            directExecutor());
        assertThat(called[0]).isTrue();
      }
    
      // Avoid trouble with automatic mapping between JRE and Kotlin runtime classes.
      static class CustomRuntimeException extends RuntimeException {}
    
      public void testCatching() throws Exception {
        FluentFuture<?> f =
            FluentFuture.from(immediateFailedFuture(new CustomRuntimeException()))
                .catching(
                    Throwable.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

      private static final ListenerCallQueue.Event<Object> THROWING_EVENT =
          new ListenerCallQueue.Event<Object>() {
            @Override
            public void call(Object object) {
              throw new RuntimeException();
            }
    
            @Override
            public String toString() {
              return "throwing()";
            }
          };
    
      public void testEnqueueAndDispatch() {
        Object listener = new Object();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

      private static final ListenerCallQueue.Event<Object> THROWING_EVENT =
          new ListenerCallQueue.Event<Object>() {
            @Override
            public void call(Object object) {
              throw new RuntimeException();
            }
    
            @Override
            public String toString() {
              return "throwing()";
            }
          };
    
      public void testEnqueueAndDispatch() {
        Object listener = new Object();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      @Override
      public void tearDown() throws Exception {
        Throwable t = threadFailure.getAndSet(null);
        if (t != null) {
          if (t instanceof Error) throw (Error) t;
          else if (t instanceof RuntimeException) throw (RuntimeException) t;
          else if (t instanceof Exception) throw (Exception) t;
          else {
            AssertionFailedError afe = new AssertionFailedError(t.toString());
            afe.initCause(t);
            throw afe;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/BuildModelSourceTransformerTest.java

                    if (!equalsDeep(p1, p2)) {
                        return false;
                    }
                }
                return true;
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      @Override
      public void tearDown() throws Exception {
        Throwable t = threadFailure.getAndSet(null);
        if (t != null) {
          if (t instanceof Error) throw (Error) t;
          else if (t instanceof RuntimeException) throw (RuntimeException) t;
          else if (t instanceof Exception) throw (Exception) t;
          else {
            AssertionFailedError afe = new AssertionFailedError(t.toString());
            afe.initCause(t);
            throw afe;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top