Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 2,205 for exceptions (0.06 sec)

  1. src/test/java/jcifs/smb/MIENameTest.java

                    }, StringIndexOutOfBoundsException.class));
        }
    
        @ParameterizedTest(name = "{0}")
        @MethodSource("invalidBuffers")
        @DisplayName("Invalid buffers throw appropriate exceptions")
        void invalidInputsThrow(String name, Object bufferSupplierOrBytes, Class<? extends Throwable> expected) {
            // Arrange
            byte[] buf;
            if (bufferSupplierOrBytes instanceof byte[]) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/SmbTreeTest.java

        }
    
        /**
         * Test for close() method throwing exception.
         * Verifies behavior when close throws an exception.
         */
        @Test
        void testClose_throwsException() {
            doThrow(new RuntimeException("Failed to close")).when(smbTree).close();
    
            assertThrows(RuntimeException.class, () -> smbTree.close(), "Should propagate exception when close fails");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/Lmhosts.java

        private int alt;
    
        /**
         * This is really just for {@link jcifs.netbios.UniAddress}. It does
         * not throw an {@link java.net.UnknownHostException} because this
         * is queried frequently and exceptions would be rather costly to
         * throw on a regular basis here.
         *
         * @param host the hostname to resolve
         * @param tc the CIFS context
         * @return resolved name, null if not found
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

      private static boolean hasConstructorUsableByGetChecked(
          Class<? extends Exception> exceptionClass) {
        try {
          Exception unused = newWithCause(exceptionClass, new Exception());
          return true;
        } catch (Throwable t) { // sneaky checked exception
          return false;
        }
      }
    
      private static <X extends Exception> X newWithCause(Class<X> exceptionClass, Throwable cause) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/LogHelperImpl.java

                logger.debug("Crawling Access Exception at {}", urlQueue.getUrl(), e);
            } else if (e.isInfoEnabled()) {
                logger.info(e.getMessage());
            } else if (e.isWarnEnabled()) {
                logger.warn("Crawling Access Exception at " + urlQueue.getUrl(), e);
            } else if (e.isErrorEnabled()) {
                logger.error("Crawling Access Exception at " + urlQueue.getUrl(), e);
            }
        }
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 14K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/SitemapsHelper.java

    import org.codelibs.fess.crawler.entity.SitemapFile;
    import org.codelibs.fess.crawler.entity.SitemapSet;
    import org.codelibs.fess.crawler.entity.SitemapUrl;
    import org.codelibs.fess.crawler.exception.CrawlingAccessException;
    import org.codelibs.fess.crawler.exception.SitemapsException;
    import org.xml.sax.Attributes;
    import org.xml.sax.SAXNotRecognizedException;
    import org.xml.sax.SAXNotSupportedException;
    import org.xml.sax.helpers.DefaultHandler;
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/PurgeLogJobTest.java

            PurgeLogJob job = new PurgeLogJob();
            assertNotNull(job);
        }
    
        // Test multiple exceptions occur
        public void test_execute_multipleExceptions() {
            // Create mock services with exceptions
            CrawlingInfoService crawlingInfoService = new CrawlingInfoService() {
                @Override
                public void deleteBefore(long time) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  8. docs/changelogs/upgrading_to_okhttp_4.md

       changing `.java` files.
    
     * **Kotlin source compatibility** is the ability to upgrade Kotlin uses of OkHttp 3.x to 4.x
       without changing `.kt` files.
    
    With a few small exceptions (below), OkHttp 4.x is both binary- and Java source-compatible with
    OkHttp 3.x. You can use an OkHttp 4.x .jar file with applications or libraries built for OkHttp 3.x.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

            @DisplayName("Should throw exception for invalid structure size")
            void testReadBytesWireFormatInvalidStructureSize() {
                // Given
                byte[] buffer = new byte[10];
                int bufferIndex = 0;
                SMBUtil.writeInt2(5, buffer, bufferIndex); // Invalid structure size
    
                // When & Then
                SMBProtocolDecodingException exception =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            verify(fd, never()).markClosed();
        }
    
        @Test
        @DisplayName("available() wraps SmbException to IOException")
        void available_wrapsException() throws Exception {
            // Verify exceptions from th.send are converted to IOException via seToIoe
            SmbPipeInputStream stream = newStreamWithMinimalStubs(true);
    
            when(handle.ensureOpen()).thenReturn(fd);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top