Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 124 for IllegalArgumentException (0.11 sec)

  1. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/FileSizeFormat.java

            if (progressedSize < 0L) {
                throw new IllegalArgumentException("progressed file size cannot be negative: " + size);
            }
            if (size >= 0 && progressedSize > size) {
                throw new IllegalArgumentException(
                        "progressed file size cannot be greater than size: " + progressedSize + " > " + size);
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSortedMap.java

       * elements. The generated map is sorted by the specified comparator.
       *
       * <p>If the mapped keys contain duplicates (according to the specified comparator), an {@code
       * IllegalArgumentException} is thrown when the collection operation is performed. (This differs
       * from the {@code Collector} returned by {@link Collectors#toMap(Function, Function)}, which
       * throws an {@code IllegalStateException}.)
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectManager.java

         *
         * @param session the current build session
         * @param project the project to attach the artifact to
         * @param path the path to the artifact file
         * @throws IllegalArgumentException if the session, project or path is null
         */
        default void attachArtifact(@Nonnull Session session, @Nonnull Project project, @Nonnull Path path) {
            String name = path.getFileName().toString();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Oct 24 11:52:48 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/configuration/DefaultBeanConfigurationRequest.java

            if (Objects.requireNonNull(groupId, "groupId cannot be null").isEmpty()) {
                throw new IllegalArgumentException("groupId cannot be empty");
            }
            if (Objects.requireNonNull(artifactId, "artifactId cannot be null").isEmpty()) {
                throw new IllegalArgumentException("artifactId cannot be empty");
            }
    
            if (model != null) {
                Build build = model.getBuild();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultPluginXmlFactory.java

            Reader reader = request.getReader();
            InputStream inputStream = request.getInputStream();
            if (path == null && url == null && reader == null && inputStream == null) {
                throw new IllegalArgumentException("path, url, reader or inputStream must be non null");
            }
            try {
                PluginDescriptorStaxReader xml = new PluginDescriptorStaxReader();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

      /** Configures this builder produce a TestSuite with the given name. */
      @CanIgnoreReturnValue
      public B named(String name) {
        if (name.contains("(")) {
          throw new IllegalArgumentException(
              "Eclipse hides all characters after "
                  + "'('; please use '[]' or other characters instead of parentheses");
        }
        this.name = name;
        return self();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/RangeTest.java

        assertThrows(IllegalArgumentException.class, () -> range.gap(Range.closed(2, 3)));
      }
    
      public void testGap_invalidRangesWithInfinity() {
        assertThrows(IllegalArgumentException.class, () -> Range.atLeast(1).gap(Range.atLeast(2)));
    
        assertThrows(IllegalArgumentException.class, () -> Range.atLeast(2).gap(Range.atLeast(1)));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/test/java/org/apache/maven/cli/MavenCliTest.java

            assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("AA"));
            assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("C"));
            assertThrows(IllegalArgumentException.class, () -> cli.calculateDegreeOfConcurrency("C2.2C"));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

            try {
                return clazz.newInstance();
            } catch (final Exception e) {
                throw new IllegalArgumentException("Cannot create instance of: " + clazz, e);
            } catch (final LinkageError e) {
                throw new IllegalArgumentException("Cannot create instance of: " + clazz, e);
            }
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FilteredKeyMultimap.java

        }
    
        @Override
        public boolean add(@ParametricNullness V element) {
          throw new IllegalArgumentException("Key does not satisfy predicate: " + key);
        }
    
        @Override
        public boolean addAll(Collection<? extends V> collection) {
          checkNotNull(collection);
          throw new IllegalArgumentException("Key does not satisfy predicate: " + key);
        }
    
        @Override
        protected Set<V> delegate() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top