Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 613 for IllegalArgumentException (0.2 sec)

  1. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

                .isNotEqualTo(paramType);
          } catch (IllegalArgumentException notSubtype1) {
            // The raw class isn't even a subclass.
          }
        }
        if (!spec.suppressGetSupertype()) {
          try {
            assertThat(getSupertype(paramType, TypeToken.of(returnType).getRawType()))
                .isNotEqualTo(returnType);
          } catch (IllegalArgumentException notSubtype2) {
            // The raw class isn't even a subclass.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/BiMap.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public interface BiMap<K extends @Nullable Object, V extends @Nullable Object> extends Map<K, V> {
      // Modification Operations
    
      /**
       * {@inheritDoc}
       *
       * @throws IllegalArgumentException if the given value is already bound to a different key in this
       *     bimap. The bimap will remain unmodified in this event. To avoid this exception, call {@link
       *     #forcePut} instead.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          boolean expectSuccess = value >= 0;
          try {
            assertThat(UnsignedLong.valueOf(value).longValue()).isEqualTo(value);
            assertThat(expectSuccess).isTrue();
          } catch (IllegalArgumentException e) {
            assertThat(expectSuccess).isFalse();
          }
        }
      }
    
    
      public void testValueOfBigInteger() {
        BigInteger min = BigInteger.ZERO;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/Resources.java

       *
       * <p>In the unusual case where the context class loader is null, the class loader that loaded
       * this class ({@code Resources}) will be used instead.
       *
       * @throws IllegalArgumentException if the resource is not found
       */
      @CanIgnoreReturnValue // being used to check if a resource exists
      // TODO(cgdecker): maybe add a better way to check if a resource exists
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/graph/EndpointPair.java

       */
      public final N nodeV() {
        return nodeV;
      }
    
      /**
       * Returns the node that is adjacent to {@code node} along the origin edge.
       *
       * @throws IllegalArgumentException if this {@link EndpointPair} does not contain {@code node}
       * @since 20.0 (but the argument type was changed from {@code Object} to {@code N} in 31.0)
       */
      public final N adjacentNode(N node) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

          if (instance != null) {
            if (instance.getCause() == null) {
              instance.initCause(cause);
            }
            return instance;
          }
        }
        throw new IllegalArgumentException(
            "No appropriate constructor for exception of type "
                + exceptionClass
                + " in response to chained exception",
            cause);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ExtensibleEnumRegistry.java

        @Nonnull
        Optional<T> lookup(@Nonnull String id);
    
        @Nonnull
        default T require(@Nonnull String id) {
            return lookup(id).orElseThrow(() -> new IllegalArgumentException("Unknown extensible enum value '" + id + "'"));
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Feb 28 23:54:53 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/request/Request.java

        public Deferred<T>.Promise execute(final Client client) {
            final String error = getValidationError();
            if (!Strings.isNullOrEmpty(error)) {
                throw new IllegalArgumentException(error);
            }
    
            final Deferred<T> deferred = new Deferred<>();
            try {
                processRequest(client, deferred);
            } catch (final Exception e) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Maps.java

          V value = values.next();
          builder.put(keyFunction.apply(value), value);
        }
        try {
          return builder.buildOrThrow();
        } catch (IllegalArgumentException duplicateKeys) {
          throw new IllegalArgumentException(
              duplicateKeys.getMessage()
                  + ". To index multiple values under a key, use Multimaps.index.");
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Maps.java

          V value = values.next();
          builder.put(keyFunction.apply(value), value);
        }
        try {
          return builder.buildOrThrow();
        } catch (IllegalArgumentException duplicateKeys) {
          throw new IllegalArgumentException(
              duplicateKeys.getMessage()
                  + ". To index multiple values under a key, use Multimaps.index.");
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
Back to top