Search Options

Results per page
Sort
Preferred Languages
Advance

Results 971 - 980 of 1,812 for rethrow (0.05 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt

          Request
            .Builder()
            .url("http://publicobject.com/secrets/hellosecret.txt")
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          println(response.body.string())
        }
      }
    }
    
    fun main() {
      Authenticate().run()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/ParseRequest.java

      private ParseRequest(String rawValue, int radix) {
        this.rawValue = rawValue;
        this.radix = radix;
      }
    
      static ParseRequest fromString(String stringValue) {
        if (stringValue.length() == 0) {
          throw new NumberFormatException("empty string");
        }
    
        // Handle radix specifier if present
        String rawValue;
        int radix;
        char firstChar = stringValue.charAt(0);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableMap.java

       * buildOrThrow(), or vice versa. So in particular, if we modify alternatingKeysAndValues to
       * eliminate duplicate keys (for buildKeepingLast()) then we have to ensure that a later call to
       * buildOrThrow() will still throw as if the duplicates had not been eliminated. And the exception
       * message must mention two values that were associated with the duplicate key in two different
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

                referralData.setKey("key");
                // Should not throw exception
                referralData.replaceCache();
            }
    
            @Test
            @DisplayName("Should not replace cache when key is null")
            void testReplaceCacheWithNullKey() {
                referralData.setCacheMap(cacheMap);
                // Should not throw exception
                referralData.replaceCache();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String componentName = "cacheManager";
            try {
                throw new ContainerNotAvailableException(componentName);
            } catch (ContainerNotAvailableException e) {
                assertEquals(componentName + " is not available.", e.getMessage());
                assertNull(e.getCause());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

                  if (!serverSocket.isClosed()) {
                    try {
                      serverSocket.close();
                      finalizeReferentRan.set(true);
                    } catch (IOException e) {
                      throw new UncheckedIOException(e);
                    }
                  }
                }
              };
          references.add(reference);
          return myServer;
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

                  if (!serverSocket.isClosed()) {
                    try {
                      serverSocket.close();
                      finalizeReferentRan.set(true);
                    } catch (IOException e) {
                      throw new UncheckedIOException(e);
                    }
                  }
                }
              };
          references.add(reference);
          return myServer;
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  8. api/maven-api-di/src/main/java/org/apache/maven/di/tool/DiIndexProcessor.java

                        writer.write(newContent);
                    }
                } catch (IOException e) {
                    logError("Failed to write to file", e);
                    throw e; // Re-throw to ensure the compilation fails
                }
            } else {
                logMessage(Diagnostic.Kind.NOTE, "Content unchanged. Skipping file update.");
            }
        }
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/ViewHelper.java

            if (configId == null) {
                throw new FessSystemException("configId is null.");
            }
            if (configId.length() < 2) {
                throw new FessSystemException("Invalid configId: " + configId);
            }
            final CrawlingConfig config = crawlingConfigHelper.getCrawlingConfig(configId);
            if (config == null) {
                throw new FessSystemException("No crawlingConfig: " + configId);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactHashMap.java

       */
      @VisibleForTesting transient @Nullable Object @Nullable [] values;
    
      /**
       * Keeps track of metadata like the number of hash table bits and modifications of this data
       * structure (to make it possible to throw ConcurrentModificationException in the iterator). Note
       * that we choose not to make this volatile, so we do less of a "best effort" to track such
       * errors, for better performance.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
Back to top