Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1381 - 1390 of 2,976 for throw (0.02 sec)

  1. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                // Then
                assertNotNull(cancel);
                assertEquals(mid, cancel.getMid());
            }
    
            @Test
            @DisplayName("Should throw NullPointerException when config is null")
            void testNullConfigurationThrowsException() throws Exception {
                // Given
                Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        }
        constructor.setAccessible(true); // accessibility check is too slow
        try {
          return constructor.newInstance();
        } catch (InstantiationException | IllegalAccessException impossible) {
          throw new AssertionError(impossible);
        } catch (InvocationTargetException e) {
          logger.log(Level.WARNING, "Exception while invoking default constructor.", e.getCause());
          return arbitraryConstantInstanceOrNull(type);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt

        /**
         * Returns a media type for this string.
         *
         * @throws IllegalArgumentException if this is not a well-formed media type.
         */
        @JvmStatic
        @JvmName("get")
        fun String.toMediaType(): MediaType {
          val typeSubtype =
            TYPE_SUBTYPE.matchAt(this, 0)
              ?: throw IllegalArgumentException("No subtype found for: \"$this\"")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:08 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/create/Smb2CloseResponse.java

         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 60) {
                throw new SMBProtocolDecodingException("Expected structureSize = 60");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TreeBasedTable.java

          updateBackingRowMapField();
          if (backingRowMap == null) {
            throw new NoSuchElementException();
          }
          return ((SortedMap<C, V>) backingRowMap).firstKey();
        }
    
        @Override
        public C lastKey() {
          updateBackingRowMapField();
          if (backingRowMap == null) {
            throw new NoSuchElementException();
          }
          return ((SortedMap<C, V>) backingRowMap).lastKey();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

       * FeatureSpecificTestSuiteBuilder.suppressing()}.
       */
      /*
       * TODO(cpovirk): or we could make HOLES_FORBIDDEN a feature. Or we could declare that
       * implementations are permitted to throw IAE if a hole is requested, and we could update
       * test*Hole to permit IAE. (But might this ignore genuine bugs?) But see the TODO above
       * testLower, which could make this all unnecessary
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/VirtualHostHelperTest.java

                }
            });
    
            try {
                HtmlNext result = virtualHostHelper.getVirtualHostPath(null);
                // If it doesn't throw an exception, the test passes
                assertTrue(true);
            } catch (Exception e) {
                // If it throws any exception, the test passes
                assertTrue(true);
            }
        }
    
        public void test_getVirtualHostPath_withComplexPath() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/JobProcessTest.java

            assertEquals("", output);
        }
    
        public void test_callbackExceptionHandling() throws IOException, InterruptedException {
            Process mockProcess = createMockProcess("exception test");
            Consumer<String> faultyCallback = line -> {
                throw new RuntimeException("Callback exception");
            };
    
            JobProcess jobProcess = new JobProcess(mockProcess, 10, faultyCallback);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientCreator.java

         * @param maxClientFactorySize The maximum size.
         */
        public void setMaxClientFactorySize(final int maxClientFactorySize) {
            if (maxClientFactorySize <= 0) {
                throw new IllegalArgumentException("maxClientFactorySize must be positive.");
            }
            this.maxClientFactorySize = maxClientFactorySize;
        }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/ds/callback/FileListIndexUpdateCallbackImpl.java

                    }
                }
                return null;
            } catch (final ChildUrlsException | DataStoreCrawlingException e) {
                throw e;
            } catch (final Exception e) {
                throw new DataStoreCrawlingException(url, "Failed to add: " + dataMap, e);
            }
        }
    
        /**
         * Merges response data from the crawler into the original data map.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 28.9K bytes
    - Viewed (0)
Back to top