Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 364 for RuntimeException (0.58 sec)

  1. android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

      @Benchmark
      void oldRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = oldRepeat(originalString, count);
          if (x.length() != (originalString.length() * count)) {
            throw new RuntimeException("Wrong length: " + x);
          }
        }
      }
    
      private static String oldRepeat(String string, int count) {
        // If this multiplication overflows, a NegativeArraySizeException or
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/PluginExceptionTest.java

        }
    
        public void test_constructor_withMessageAndCause() {
            // Test constructor with message and cause
            String message = "Plugin initialization failed";
            Throwable cause = new RuntimeException("Underlying error");
            PluginException exception = new PluginException(message, cause);
    
            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java

          immediateFailedFuture(CHECKED_EXCEPTION);
      static final RuntimeException UNCHECKED_EXCEPTION = new RuntimeException("mymessage");
      static final Future<String> FAILED_FUTURE_UNCHECKED_EXCEPTION =
          immediateFailedFuture(UNCHECKED_EXCEPTION);
      static final RuntimeException RUNTIME_EXCEPTION = new RuntimeException();
      static final OtherThrowable OTHER_THROWABLE = new OtherThrowable();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

            when(supplier.get()).thenThrow(new RuntimeException(new SmbUnsupportedOperationException("boom")));
    
            // Act & Assert: the exception is propagated and interaction recorded once
            RuntimeException thrown = assertThrows(RuntimeException.class, supplier::get);
            assertInstanceOf(SmbUnsupportedOperationException.class, thrown.getCause());
            assertEquals("boom", thrown.getCause().getMessage());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/transport/TransportExceptionTest.java

            // Create a root cause exception
            RuntimeException rootCause = new RuntimeException("Root cause error");
            TransportException exception = new TransportException(rootCause);
    
            // Verify the exception has the correct cause
            assertNotNull(exception);
            assertEquals(rootCause, exception.getCause());
            assertEquals("java.lang.RuntimeException: Root cause error", exception.getMessage());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java

            assertTrue(cause3 instanceof RuntimeException);
            assertEquals("Level 3 error", cause3.getMessage());
    
            assertNull(cause3.getCause());
        }
    
        public void test_serialization() throws Exception {
            // Test serialization and deserialization
            String message = "Serializable SSO exception";
            Exception cause = new RuntimeException("Serializable cause");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Throwables.java

        checkNotNull(throwable);
        if (throwable instanceof RuntimeException) {
          throw (RuntimeException) throwable;
        }
        if (throwable instanceof Error) {
          throw (Error) throwable;
        }
      }
    
      /**
       * Propagates {@code throwable} exactly as-is, if and only if it is an instance of {@link
       * RuntimeException} or {@link Error}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/curl/CurlExceptionTest.java

        }
    
        @Test
        public void testExceptionChaining() {
            IOException rootCause = new IOException("Root cause");
            RuntimeException intermediateCause = new RuntimeException("Intermediate", rootCause);
            CurlException exception = new CurlException("Final message", intermediateCause);
    
            assertEquals("Final message", exception.getMessage());
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java

                Long nullValue = null;
                return nullValue;
            }
        }
    
        // Test class that throws RuntimeException
        private static class RuntimeExceptionScoreBooster extends ScoreBooster {
            @Override
            public long process() {
                throw new RuntimeException("Runtime exception message");
            }
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/FessUserNotFoundExceptionTest.java

            String username = "testuser";
            FessUserNotFoundException originalException = new FessUserNotFoundException(username);
    
            try {
                throw new RuntimeException("Wrapper exception", originalException);
            } catch (RuntimeException e) {
                assertEquals("Wrapper exception", e.getMessage());
                assertNotNull(e.getCause());
                assertTrue(e.getCause() instanceof FessUserNotFoundException);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top