Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1641 - 1650 of 2,976 for throw (0.02 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt

        val address = canonicalizeInetAddress(inetAddressByteArray)
        if (address.size == 16) return inet6AddressToAscii(address)
        if (address.size == 4) return inet4AddressToAscii(address) // An IPv4-mapped IPv6 address.
        throw AssertionError("Invalid IPv6 address: '$host'")
      }
    
      val result = idnToAscii(host) ?: return null
      if (result.isEmpty()) return null
      if (result.containsInvalidHostnameAsciiCodes()) return null
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. README.md

    ```
    
    ### Exception Handling
    ```java
    import org.codelibs.core.exception.*;
    
    // Runtime exception wrappers eliminate try-catch boilerplate
    try {
        // Code that might throw checked exceptions
        return ClassUtil.newInstance(className); // Wraps checked exceptions automatically
    } catch (ClassNotFoundRuntimeException e) {
        // Handle the wrapped exception
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sun Aug 31 02:56:02 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

                bb.putShort((short) 0); // tflags high bytes
    
                // Invalid referral version
                bb.putShort((short) 99); // unsupported version
    
                // Should throw exception for unsupported version
                assertThrows(Exception.class, () -> {
                    buffer.decode(testBuffer, 0, testBuffer.length);
                });
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/RelatedContentHelperTest.java

            List<RelatedContent> testData = new ArrayList<>();
            testData.add(createRelatedContent("regex:", "Invalid Regex", ""));
            mockBhv.setTestData(testData);
    
            // Should not throw exception, just log warning
            relatedContentHelper.load();
    
            String[] results = relatedContentHelper.getRelatedContents("anything");
            assertEquals(0, results.length);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

            callback.store(params, data);
            callback.store(params, data);
    
            assertEquals(3L, callback.getDocumentSize());
            assertEquals(300L, callback.getExecuteTime());
    
            // Test commit (should not throw exception)
            callback.commit();
        }
    
        public void test_multiple_implementations() {
            // Test with different implementations to ensure interface contract
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/badword/ApiAdminBadwordAction.java

                    badWordService.importCsv(reader);
                    suggestHelper.storeAllBadWords(false);
                } catch (final Exception e) {
                    throw new FessSystemException("Failed to import data.", e);
                }
            });
            return asJson(new ApiResult.ApiResponse().status(ApiResult.Status.OK).result());
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

      public abstract ImmutableBiMap<V, K> inverse();
    
      @Override
      public ImmutableSet<V> values() {
        return inverse().keySet();
      }
    
      public final @Nullable V forcePut(K key, V value) {
        throw new UnsupportedOperationException();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

                // Check if transport creation failed
                if (newTransport == null) {
                    throw new IOException("Failed to create new transport");
                }
    
                // Reconnect
                channel.setState(ChannelState.CONNECTING);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CollectCollectors.java

        checkNotNull(keyFunction);
        checkNotNull(valueFunction);
        return Collector.of(
            () ->
                new EnumMapAccumulator<K, V>(
                    (v1, v2) -> {
                      throw new IllegalArgumentException("Multiple values for key: " + v1 + ", " + v2);
                    }),
            (accum, t) -> {
              /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

          case UNORDERED:
            orderedNodeConnections = null;
            break;
          case STABLE:
            orderedNodeConnections = new ArrayList<>();
            break;
          default:
            throw new AssertionError(incidentEdgeOrder.type());
        }
    
        return new DirectedGraphConnections<>(
            /* adjacentNodeValues= */ new HashMap<N, Object>(initialCapacity, INNER_LOAD_FACTOR),
            orderedNodeConnections,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
Back to top