Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 212 for RuntimeException (0.3 seconds)

  1. src/test/java/org/codelibs/fess/exception/DataStoreCrawlingExceptionTest.java

            // Test with RuntimeException
            RuntimeException runtimeException = new RuntimeException("Unexpected error");
            DataStoreCrawlingException exception3 = new DataStoreCrawlingException(url, message, runtimeException);
            assertTrue(exception3.getCause() instanceof RuntimeException);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 16.6K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

            ContainerNotAvailableException exception1 = new ContainerNotAvailableException(componentName1, new RuntimeException());
            assertEquals(componentName1, exception1.getComponentName());
    
            ContainerNotAvailableException exception2 = new ContainerNotAvailableException(new RuntimeException());
            assertEquals("container", exception2.getComponentName());
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java

            assertTrue(exception2.getCause() instanceof IllegalArgumentException);
    
            RuntimeException runtimeException = new RuntimeException("Runtime error");
            SsoLoginException exception3 = new SsoLoginException(message, runtimeException);
            assertTrue(exception3.getCause() instanceof RuntimeException);
        }
    
        @Test
        public void test_constructorWithThrowableCause_NullError() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 14.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

            });
    
            // Test with runtime exception
            RuntimeException runtimeException = new IllegalArgumentException("Illegal arg");
            assertDoesNotThrow(() -> {
                RuntimeCIFSException exception = new RuntimeCIFSException(runtimeException);
                assertEquals(runtimeException, exception.getCause());
            });
    
            // Test with error
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/exception/ThumbnailGenerationExceptionTest.java

            // Test that RuntimeException still works (backward compatibility)
            String message = "Runtime error during thumbnail generation";
            RuntimeException runtimeException = new RuntimeException("Runtime issue");
            ThumbnailGenerationException exception = new ThumbnailGenerationException(message, runtimeException);
    
            assertEquals(message, exception.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            final String errorMessage = "Test exception occurred";
            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                @Override
                public void storeSearchLog() {
                    throw new RuntimeException(errorMessage);
                }
            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    
            // Execute the job
            String result = aggregateLogJob.execute();
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

                int expectedLength = (Math.min(65536, 65536) - Smb2QueryInfoResponse.OVERHEAD) & ~0x7;
                assertEquals(expectedLength, actualOutputBufferLength);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
        @DisplayName("Test constructor with Configuration and FileId")
        void testConstructorWithConfigAndFileId() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/io/Closer.java

       */
      public RuntimeException rethrow(Throwable e) throws IOException {
        checkNotNull(e);
        thrown = e;
        throwIfInstanceOf(e, IOException.class);
        throwIfUnchecked(e);
        throw new RuntimeException(e);
      }
    
      /**
       * Stores the given throwable and rethrows it. It will be rethrown as is if it is an {@code
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/exception/SsoProcessExceptionTest.java

            // Test backward compatibility - verify RuntimeException still works
            String message = "SSO runtime error";
            RuntimeException runtimeException = new RuntimeException("SSO processing failed");
            SsoProcessException exception = new SsoProcessException(message, runtimeException);
    
            assertEquals(message, exception.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  10. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

            for (int i = 0; i < 3; i++) {
                final int index = i;
                try {
                    circuitBreaker.executeWithCircuitBreaker(() -> {
                        throw new RuntimeException("Test failure " + index);
                    });
                    fail("Should have thrown exception");
                } catch (CIFSException e) {
                    // Expected
                }
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.2K bytes
    - Click Count (0)
Back to Top