Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for caught (0.82 sec)

  1. src/test/java/jcifs/netbios/NbtExceptionTest.java

        /**
         * Test that NbtException can be caught as a CIFSException.
         */
        @Test
        @DisplayName("NbtException should be catchable as CIFSException")
        void testCatchableAsCIFSException() {
            try {
                throw new NbtException(NbtException.ERR_NAM_SRVC, NbtException.FMT_ERR);
            } catch (CIFSException e) {
                assertTrue(e instanceof NbtException, "Caught exception should be an instance of NbtException");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/PathValidatorTest.java

            // These tests validate current behavior where problematic paths are caught by other checks
    
            // Test invalid server name with dots - caught by directory traversal check
            assertThrows(SmbException.class, () -> {
                validator.validatePath("\\\\..\\share");
            });
    
            // Test invalid characters in paths - caught by null byte check
            assertThrows(SmbException.class, () -> {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/interval/impl/AbstractIntervalController.java

     * </p>
     *
     * <p>
     * The class also provides a mechanism to ignore exceptions that may occur during the delay process.
     * If {@link #ignoreException} is set to true, any exceptions thrown during the delay will be caught
     * and ignored. Otherwise, they will be re-thrown as {@link CrawlerSystemException}.
     * </p>
     *
     */
    public abstract class AbstractIntervalController implements IntervalController {
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:58:39 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            assertTrue(exception instanceof CIFSException);
            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
    
            // Test that it can be caught as CIFSException
            boolean caughtAsCIFSException = false;
            try {
                throw exception;
            } catch (CIFSException e) {
                caughtAsCIFSException = true;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

        void testCatchBlockBehavior() {
            // Test that RuntimeCIFSException can be caught as RuntimeException
            assertThrows(RuntimeException.class, () -> {
                throw new RuntimeCIFSException("Test exception");
            });
    
            // Test that it can be caught specifically
            assertThrows(RuntimeCIFSException.class, () -> {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/lang/ThreadUtil.java

            }
        }
    
        /**
         * Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds.
         * Any {@link InterruptedException} is caught and logged at debug level.
         *
         * @param millis
         *            the length of time to sleep in milliseconds
         */
        public static void sleepQuietly(final long millis) {
            if (millis < 1L) {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SecurityBlobTest.java

            assertTrue(shorter.equals(longer), "Shorter equals longer when prefix matches (implementation behavior)");
    
            // In the opposite direction, an out-of-bounds occurs internally and is caught as false
            assertFalse(longer.equals(shorter), "Longer does not equal shorter (implementation behavior)");
        }
    
        // Confirms equals() returns false when content differs
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

                }
            } catch (final Exception ignored) {}
        }
    
        protected void handleFileUploadException(final FileUploadException e) throws ServletException {
            // suppress logging because it can be caught by logging filter
            //log.error("Failed to parse multipart request", e);
            throw new ServletException("Failed to upload the file.", e);
        }
    
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 18.6K bytes
    - Viewed (1)
  9. src/main/java/org/codelibs/fess/helper/DataIndexHelper.java

                return running;
            }
    
            /**
             * Waits for the crawling thread to terminate.
             * This method blocks until the thread completes its execution.
             * Interrupted exceptions are caught and logged at debug level.
             */
            public void awaitTermination() {
                try {
                    join();
                } catch (final InterruptedException e) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 19K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/opensearch/config/allcommon/EsAbstractBehavior.java

                return null;
            }
            if (list.size() >= 2) {
                String msg = "The size of selected list is over 1: " + list.size();
                throw new FetchingOverSafetySizeException(msg, 1); // immediately caught by caller and translated
            }
            return list.get(0);
        }
    
        @Override
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 27 07:01:25 UTC 2025
    - 26.4K bytes
    - Viewed (0)
Back to top