Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2311 - 2320 of 2,367 for Exceptions (0.07 sec)

  1. guava/src/com/google/common/net/InetAddresses.java

        return (short) hextet;
      }
    
      /**
       * Convert a byte array into an InetAddress.
       *
       * <p>{@link InetAddress#getByAddress} is documented as throwing a checked exception "if IP
       * address is of illegal length." We replace it with an unchecked exception, for use by callers
       * who already know that addr is an array of length 4 or 16.
       *
       * @param addr the raw 4-byte or 16-byte IP address in big-endian order
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

       * if this queue is full. This method is generally preferable to method {@link #add}, which can
       * fail to insert an element only by throwing an exception.
       *
       * @throws NullPointerException if the specified element is null
       */
      @CanIgnoreReturnValue
      @Override
      public boolean offer(E e) {
        if (e == null) throw new NullPointerException();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        try {
          Chars.checkedCast(value);
          fail("Cast to char should have failed: " + value);
        } catch (IllegalArgumentException ex) {
          assertWithMessage("%s not found in exception text: %s", value, ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
      // We need to test that our method behaves like the JDK method.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/Files.java

       * the case of Android, the current app. If that is not possible (as is the case under the very
       * old Android Ice Cream Sandwich release), then this method throws an exception instead of
       * creating a directory that would be more accessible. (This behavior is new in Guava 32.0.0.
       * Previous versions would create a directory that is more accessible, as discussed in <a
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 20:24:13 UTC 2025
    - 32.8K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

    import org.apache.maven.repository.legacy.resolver.conflict.ConflictResolver;
    import org.apache.maven.wagon.events.TransferListener;
    import org.codehaus.plexus.PlexusContainer;
    import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
    import org.codehaus.plexus.logging.Logger;
    import org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable;
    import org.eclipse.aether.RepositorySystem;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 25K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/curl/CurlRequestTest.java

            // Test encoding of special characters
            request.param("query", "hello world & more");
            request.param("special", "ñ€±");
    
            // Should not throw exception
            assertNotNull(request);
        }
    
        @Test
        public void testUnsupportedEncodingThrowsException() {
            CurlRequest request = new CurlRequest(Method.GET, "https://example.com");
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Mon Nov 24 03:10:07 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java

                        yield dataConfigService.getDataConfig(id).get();
                    }
                    default -> null;
                    };
                });
            } catch (final Exception e) {
                logger.warn("Failed to access a crawling config cache: {}", configId, e);
                return null;
            }
        }
    
        /**
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 19.5K bytes
    - Viewed (1)
  8. guava/src/com/google/common/io/Files.java

       * the case of Android, the current app. If that is not possible (as is the case under the very
       * old Android Ice Cream Sandwich release), then this method throws an exception instead of
       * creating a directory that would be more accessible. (This behavior is new in Guava 32.0.0.
       * Previous versions would create a directory that is more accessible, as discussed in <a
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 20:24:13 UTC 2025
    - 32.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NameTest.java

            lenient().when(mockConfig.getOemEncoding()).thenReturn("UTF-8");
        }
    
        @Test
        void constructor_withConfigOnly_shouldInitializeFields() throws Exception {
            Name name = new Name(mockConfig);
    
            Field configField = Name.class.getDeclaredField("config");
            configField.setAccessible(true);
            assertSame(mockConfig, configField.get(name));
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/Helpers.java

        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getMethod(Class<?> clazz, String name) {
        try {
          return clazz.getMethod(name);
        } catch (Exception e) {
          throw new IllegalArgumentException(e);
        }
      }
    
      /**
       * Useless constructor for a class of static utility methods.
       *
       * @deprecated Do not instantiate this utility class.
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 17.2K bytes
    - Viewed (0)
Back to top