Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 492 for RuntimeException (0.54 seconds)

  1. guava-tests/test/com/google/common/io/CloserTest.java

      }
    
      public void testRuntimeExceptions() throws IOException {
        Closer closer = new Closer(suppressor);
    
        RuntimeException tryException = new RuntimeException();
        RuntimeException c1Exception = new RuntimeException();
        RuntimeException c2Exception = new RuntimeException();
    
        TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(c1Exception));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

        @Override
        public void finalizeReferent() {
          references.remove(this);
          latch.countDown();
        }
      }
    
      @FormatMethod
      private static RuntimeException formatRuntimeException(String format, Object... args) {
        return new RuntimeException(String.format(Locale.ROOT, format, args));
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 20:19:19 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java

      public static <V> ListenableFuture<V> throwingRuntimeException(RuntimeException e) {
        UncheckedThrowingFuture<V> future = new UncheckedThrowingFuture<V>();
        future.complete(checkNotNull(e));
        return future;
      }
    
      public static <V> UncheckedThrowingFuture<V> incomplete() {
        return new UncheckedThrowingFuture<V>();
      }
    
      public void complete(RuntimeException e) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.3K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/CloserTest.java

      }
    
      public void testRuntimeExceptions() throws IOException {
        Closer closer = new Closer(suppressor);
    
        RuntimeException tryException = new RuntimeException();
        RuntimeException c1Exception = new RuntimeException();
        RuntimeException c2Exception = new RuntimeException();
    
        TestCloseable c1 = closer.register(TestCloseable.throwsOnClose(c1Exception));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java

            }
        }
    
        @Test
        public void test_throwAndCatchAsRuntimeException() {
            // Test catching as RuntimeException
            String expectedMessage = "Caught as RuntimeException";
    
            try {
                throw new ResultOffsetExceededException(expectedMessage);
            } catch (RuntimeException e) {
                assertEquals(expectedMessage, e.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

            });
    
            // First reject
            deferred.reject(new RuntimeException("first"));
            // Second reject (should be ignored)
            deferred.reject(new RuntimeException("second"));
            // Third reject (should be ignored)
            deferred.reject(new RuntimeException("third"));
    
            Thread.sleep(100);
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 21.1K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/curl/CurlException.java

     * This class extends {@link RuntimeException} and provides constructors
     * to create an exception instance with a message and an optional cause.
     *
     * <p>Usage examples:</p>
     * <pre>
     *     throw new CurlException("Error message");
     *     throw new CurlException("Error message", cause);
     * </pre>
     *
     * @see RuntimeException
     */
    public class CurlException extends RuntimeException {
    
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Jul 05 01:38:18 GMT 2025
    - 2K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/exception/SsoMessageExceptionTest.java

            assertTrue(exception instanceof RuntimeException);
        }
    
        @Test
        public void test_stackTracePresence() {
            // Setup
            final String message = "Test stack trace";
            final VaMessenger<FessMessages> messageCode = messages -> messages.addErrorsSsoLoginError(UserMessages.GLOBAL_PROPERTY_KEY);
            final Exception cause = new RuntimeException("Root cause");
    
            // Execute
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/exception/QueryParseExceptionTest.java

            // This is expected behavior for exceptions with null cause
        }
    
        @Test
        public void test_nestedCause() {
            // Test with nested exceptions
            RuntimeException rootCause = new RuntimeException("Root cause");
            ParseException parseException = new ParseException("Parse error");
            parseException.initCause(rootCause);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/auth/chain/AuthenticationChainTest.java

                updateCalls.add(user);
                if (updateThrowsException) {
                    throw new RuntimeException("Update failed");
                }
            }
    
            @Override
            public void delete(User user) {
                deleteCalls.add(user);
                if (deleteThrowsException) {
                    throw new RuntimeException("Delete failed");
                }
            }
    
            @Override
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 14.8K bytes
    - Click Count (0)
Back to Top