Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 2,976 for throw (0.02 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

       * {@code setCount()} to throw an exception, as checking the return value could produce an
       * incorrect error message like "setCount() should return the original count" instead of the
       * message passed to a later invocation of {@code fail()}, like "setCount should throw
       * UnsupportedOperationException."
       */
      abstract void setCountNoCheckReturnValue(E element, int count);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

            }
            throw new MethodNotFoundRuntimeException(beanClass, methodName, args);
        }
    
        @Override
        public MethodDesc[] getMethodDescs(final String methodName) {
            assertArgumentNotEmpty("methodName", methodName);
    
            final MethodDesc[] methodDescs = methodDescsCache.get(methodName);
            if (methodDescs == null) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 25.8K bytes
    - Viewed (1)
  3. src/main/java/jcifs/netbios/UniAddress.java

        }
    
        /**
         * Perform DNS SRV lookup on successively shorter suffixes of name
         * and return successful suffix or throw an UnknownHostException.
         * import javax.naming.*;
         * import javax.naming.directory.*;
         * public static String getDomainByName(String name) throws UnknownHostException {
         * DirContext context;
         * UnknownHostException uhe = null;
         *
         * try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/FileOperator.kt

    internal class FileOperator(
      private val fileChannel: FileChannel,
    ) {
      /** Write [byteCount] bytes from [source] to the file at [pos]. */
      @Throws(IOException::class)
      fun write(
        pos: Long,
        source: Buffer,
        byteCount: Long,
      ) {
        if (byteCount < 0L || byteCount > source.size) {
          throw IndexOutOfBoundsException()
        }
        var mutablePos = pos
        var mutableByteCount = byteCount
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/CacheResponse.kt

          Request
            .Builder()
            .url("http://publicobject.com/helloworld.txt")
            .build()
    
        val response1Body =
          client.newCall(request).execute().use {
            if (!it.isSuccessful) throw IOException("Unexpected code $it")
    
            println("Response 1 response:          $it")
            println("Response 1 cache response:    ${it.cacheResponse}")
            println("Response 1 network response:  ${it.networkResponse}")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/zip/ZipFileUtil.java

         */
        public static ZipFile create(final String file) {
            assertArgumentNotEmpty("file", file);
    
            try {
                return new ZipFile(file);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * Creates and returns a <code>ZipFile</code> for reading the specified file.
         *
         * @param file
         *            File. Must not be {@literal null}.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/security/MessageDigestUtil.java

         * @return {@link MessageDigest}
         * @throws RuntimeException
         *             If a {@link NoSuchAlgorithmException} occurs
         */
        public static MessageDigest getInstance(final String algorithm) {
            assertArgumentNotEmpty("algorithm", algorithm);
    
            try {
                return MessageDigest.getInstance(algorithm);
            } catch (final NoSuchAlgorithmException e) {
                throw new NoSuchAlgorithmRuntimeException(e);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

            } catch (final CrawlerSystemException e) {
                closeResources(httpRequest, responseData);
                throw e;
            } catch (final Exception e) {
                closeResources(httpRequest, responseData);
                throw new CrawlerSystemException("Failed to access " + url, e);
            } finally {
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 52.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

      }
    
      /** This method will throw an {@link UnsupportedOperationException}. */
      @CanIgnoreReturnValue // to skip a line
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public String readLine() {
        throw new UnsupportedOperationException("readLine is not supported");
      }
    
      @Override
      public void readFully(byte[] b) throws IOException {
        ByteStreams.readFully(this, b);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            try {
                charMappingFile.update(updateItem2);
                fail("Should throw DictionaryException");
            } catch (DictionaryException e) {
                assertTrue(e.getMessage().contains("Mapping file was updated"));
            }
        }
    
        // Test reload with IOException
        public void test_reload_ioException() throws Exception {
            // This test verifies error handling during reload
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.5K bytes
    - Viewed (0)
Back to top