Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 3,884 for Throw (0.06 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/BuildEventsErrorIntegrationTest.groovy

        def "produces reasonable error message when build fails and Gradle.buildFinished closure also fails"() {
            buildFile << """
        gradle.buildFinished {
            throw new RuntimeException('broken closure')
        }
        task broken {
            doLast { throw new RuntimeException('broken task') }
        }
    """
    
            when:
            fails("broken")
    
            then:
            failure.assertHasFailures(2)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Preconditions.java

          @CheckForNull Object p4) {
        if (reference == null) {
          throw new NullPointerException(lenientFormat(errorMessageTemplate, p1, p2, p3, p4));
        }
        return reference;
      }
    
      /*
       * All recent hotspots (as of 2009) *really* like to have the natural code
       *
       * if (guardExpression) {
       *    throw new BadException(messageExpression);
       * }
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 11:52:14 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/ProjectConfigureEventsErrorIntegrationTest.groovy

            when:
            buildFile """
        task test
        project.afterEvaluate {
            throw new RuntimeException("afterEvaluate failure")
        }
        throw new RuntimeException("configure")
    """
            then:
            fails('test')
            failure.assertHasFailures(2)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Cut.java

        Comparable<?> endpoint() {
          throw new IllegalStateException("range unbounded on this side");
        }
    
        @Override
        boolean isLessThan(Comparable<?> value) {
          return true;
        }
    
        @Override
        BoundType typeAsLowerBound() {
          throw new IllegalStateException();
        }
    
        @Override
        BoundType typeAsUpperBound() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java

      public final boolean add(E e) {
        throw new UnsupportedOperationException();
      }
    
      public final boolean remove(@Nullable Object object) {
        throw new UnsupportedOperationException();
      }
    
      public final boolean addAll(Collection<? extends E> newElements) {
        throw new UnsupportedOperationException();
      }
    
      public final boolean removeAll(Collection<?> oldElements) {
        throw new UnsupportedOperationException();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Cut.java

        Comparable<?> endpoint() {
          throw new IllegalStateException("range unbounded on this side");
        }
    
        @Override
        boolean isLessThan(Comparable<?> value) {
          return true;
        }
    
        @Override
        BoundType typeAsLowerBound() {
          throw new IllegalStateException();
        }
    
        @Override
        BoundType typeAsUpperBound() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. platforms/software/ivy/src/main/java/org/gradle/api/publish/ivy/internal/artifact/NormalizedIvyArtifact.java

            throw new IllegalStateException();
        }
    
        @Override
        public File getFile() {
            return file;
        }
    
        @Override
        public void builtBy(Object... tasks) {
            throw new IllegalStateException();
        }
    
        @Nonnull
        @Override
        public TaskDependency getBuildDependencies() {
            throw new IllegalStateException();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/logging/src/main/java/org/gradle/util/GFileUtils.java

            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
        public static void copyDirectory(File source, File destination) {
            logDeprecation();
            try {
                FileUtils.copyDirectory(source, destination);
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ProcessFixture.groovy

        void kill(boolean killTree) {
            println "Killing process with pid: $pid"
            if (pid == null) {
                throw new RuntimeException("Unable to force kill the process because provided pid is null!")
            }
            if (!(OperatingSystem.current().unix || OperatingSystem.current().windows)) {
                throw new RuntimeException("This implementation does not know how to forcefully kill a process on os: " + OperatingSystem.current())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

      public boolean addAll(Collection<? extends E> elementsToAdd) {
        throw up();
      }
    
      @Override
      public boolean removeAll(Collection<?> elementsToRemove) {
        throw up();
      }
    
      @Override
      public boolean retainAll(Collection<?> elementsToRetain) {
        throw up();
      }
    
      @Override
      public void clear() {
        throw up();
      }
    
      private static UnsupportedOperationException up() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top