Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 752 for IllegalArgumentException (1.47 sec)

  1. android/guava-tests/test/com/google/common/io/ResourcesTest.java

        Resources.copy(resource, out);
        assertEquals(I18N, out.toString("UTF-8"));
      }
    
      public void testGetResource_notFound() {
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class, () -> Resources.getResource("no such resource"));
        assertThat(e).hasMessageThat().isEqualTo("resource no such resource not found.");
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/InjectUtil.java

                    throw new IllegalArgumentException(formatter.toString());
                } else {
                    TreeFormatter formatter = new TreeFormatter();
                    formatter.node("The constructor for type ");
                    formatter.appendType(reportAs);
                    formatter.append(" should be annotated with @Inject.");
                    throw new IllegalArgumentException(formatter.toString());
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/MIEName.java

            int i;
            int len;
            if ( buf.length < TOK_ID_SIZE + MECH_OID_LEN_SIZE ) {
                throw new IllegalArgumentException();
            }
            // TOK_ID
            for ( i = 0; i < TOK_ID.length; i++ ) {
                if ( TOK_ID[ i ] != buf[ i ] ) {
                    throw new IllegalArgumentException();
                }
            }
            // MECH_OID_LEN
            len = 0xff00 & ( buf[ i++ ] << 8 );
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeResolverTest.java

      public <T> void testWhere_incompatibleGenericArrayMapping() {
        assertThrows(
            IllegalArgumentException.class,
            () -> new TypeResolver().where(new TypeCapture<T[]>() {}.capture(), String.class));
      }
    
      public <T> void testWhere_incompatibleParameterizedTypeMapping() {
        assertThrows(
            IllegalArgumentException.class,
            () -> new TypeResolver().where(new TypeCapture<Iterable<T>>() {}.capture(), List.class));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

        filtered.put("a", 1);
        filtered.put("b", 2);
        assertEquals(ImmutableMap.of("a", 1, "b", 2), filtered);
    
        try {
          filtered.put("yyy", 3);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testFilteredKeysIllegalPutAll() {
        Map<String, Integer> unfiltered = createUnfiltered();
        Map<String, Integer> filtered = Maps.filterKeys(unfiltered, NOT_LENGTH_3);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/storage/Handler.java

                    return minioClient.getObject(args);
                } catch (InvalidKeyException | ErrorResponseException | IllegalArgumentException | InsufficientDataException | InternalException
                        | InvalidResponseException | NoSuchAlgorithmException | XmlParserException | IOException | ServerException e) {
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolver.java

         * @param root the Maven Dependency, must not be {@code null}
         * @return the collection result, never {@code null}
         * @throws DependencyResolverException if the dependency tree could not be built
         * @throws IllegalArgumentException if an argument is null or invalid
         * @see #collect(DependencyResolverRequest)
         */
        @Nonnull
        default DependencyResolverResult collect(@Nonnull Session session, @Nonnull DependencyCoordinate root) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Preconditions.java

       *
       * @param expression a boolean expression
       * @throws IllegalArgumentException if {@code expression} is false
       */
      public static void checkArgument(boolean expression) {
        if (!expression) {
          throw new IllegalArgumentException();
        }
      }
    
      /**
       * Ensures the truth of an expression involving one or more parameters to the calling method.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 11 11:52:14 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/TopKSelectorTest.java

        try {
          TopKSelector.<String>least(-1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          TopKSelector.<String>greatest(-1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
          TopKSelector.least(-1, Ordering.natural());
          fail();
        } catch (IllegalArgumentException expected) {
        }
        try {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/BaseGraph.java

      boolean isDirected();
    
      /**
       * Returns true if this graph allows self-loops (edges that connect a node to itself). Attempting
       * to add a self-loop to a graph that does not allow them will throw an {@link
       * IllegalArgumentException}.
       */
      boolean allowsSelfLoops();
    
      /** Returns the order of iteration for the elements of {@link #nodes()}. */
      ElementOrder<N> nodeOrder();
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top