Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 174 for getCause (0.05 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/exception/ExecutionTimeoutException.java

        /**
         * Constructs a new exception with the specified detail message and cause.
         *
         * @param message the detail message
         * @param cause the cause (which is saved for later retrieval by the {@link Throwable#getCause()} method)
         */
        public ExecutionTimeoutException(final String message, final Throwable cause) {
            super(message, cause);
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb1/SmbClientTest.java

            };
            client.setAccessTimeout(1);
            try {
                client.doGet("smb1://localhost/test.txt");
                fail();
            } catch (CrawlingAccessException e) {
                assertTrue(e.getCause() instanceof InterruptedException);
            }
        }
    
        public void test_doHead_accessTimeoutTarget() {
            SmbClient client = new SmbClient() {
                @Override
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java

            assertEquals(message, exception.getMessage());
            assertNotNull(exception.getStackTrace());
            assertTrue(exception.getStackTrace().length > 0);
            assertNull(exception.getCause());
        }
    
        public void test_constructor_withNullMessage() {
            // Test with null message
            ResultOffsetExceededException exception = new ResultOffsetExceededException(null);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

            assertEquals(SmbException.getMessageByCode(errCode), ex.getMessage(), "message should reflect error code mapping");
            assertEquals(expectedStatus, ex.getNtStatus(), "status should map based on code");
            assertNull(ex.getCause(), "cause must be null for int constructor");
            assertNull(ex.getRootCause(), "rootCause must be null for int constructor");
        }
    
        /**
         * Validate message-only constructor with both null and empty messages.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

            assertEquals(message, exception.getMessage(), "Message should match the input.");
            assertEquals(cause, exception.getCause(), "Cause should match the input.");
            assertEquals(cause, exception.getRootCause(), "getRootCause() should return the same cause as getCause().");
        }
    
        /**
         * Test getErrorCode() method.
         */
        @Test
        void testGetErrorCode() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Throwables.java

        Throwable cause;
        while ((cause = throwable.getCause()) != null) {
          throwable = cause;
    
          if (throwable == slowPointer) {
            throw new IllegalArgumentException("Loop in causal chain detected.", throwable);
          }
          if (advanceSlowPointer) {
            slowPointer = slowPointer.getCause();
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java

            } catch (java.lang.reflect.InvocationTargetException e) {
                // We expect this to fail, but it should be a CIFSException, not a NullPointerException
                assertTrue(e.getCause() instanceof CIFSException);
                assertTrue(e.getCause().getMessage().contains("Failed to create multi-channel transport"));
            }
        }
    
        @Test
        @DisplayName("MultiChannelManager should shutdown cleanly")
        void testShutdown() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbExceptionTest.java

            // When
            SmbException finalException = new SmbException("Final error", intermediateCause);
    
            // Then
            assertEquals(intermediateCause, finalException.getCause());
            assertEquals(rootCause, finalException.getCause().getCause());
        }
    
        @Test
        @DisplayName("Should handle null message gracefully")
        void testNullMessage() {
            // When/Then
            assertDoesNotThrow(() -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/exception/SIllegalStateExceptionTest.java

            assertThat(clIllegalStateException.getMessage(), is("hoge"));
            assertThat(clIllegalStateException.getCause(), instanceOf(NullPointerException.class));
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.exception.ClIllegalStateException#SIllegalStateException(java.lang.Throwable)}
         * .
         */
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/curl/CurlResponseTest.java

                assertTrue(e.getCause() instanceof CurlException);
                CurlException innerException = (CurlException) e.getCause();
                assertTrue(innerException.getMessage().contains("The content does not exist"));
                assertSame(exception, innerException.getCause());
            }
        }
    
        @Test
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top