Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 492 for RuntimeException (0.09 seconds)

  1. src/test/java/jcifs/spnego/SpnegoExceptionTest.java

        @Test
        @DisplayName("Should create SpnegoException with message and cause")
        void testWithMessageAndCause() {
            // Given
            String message = "SPNEGO handshake error";
            RuntimeException cause = new RuntimeException("root cause");
    
            // When
            SpnegoException ex = new SpnegoException(message, cause);
    
            // Then
            assertNotNull(ex);
            assertEquals(message, ex.getMessage());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/job/impl/ScriptExecutorTest.java

                    throw new RuntimeException("Script evaluation failed");
                }
            });
    
            // Execute and verify exception is propagated
            try {
                scriptExecutor.execute("errorEngine", "test");
                fail("Expected RuntimeException");
            } catch (RuntimeException e) {
                assertEquals("Script evaluation failed", e.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        Throwable t = threadFailure.getAndSet(null);
        if (t != null) {
          if (t instanceof Error) {
            throw (Error) t;
          } else if (t instanceof RuntimeException) {
            throw (RuntimeException) t;
          } else if (t instanceof Exception) {
            throw (Exception) t;
          } else {
            AssertionFailedError afe = new AssertionFailedError(t.toString());
            afe.initCause(t);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/base/ThrowablesTest.java

        assertThrows(SomeError.class, () -> propagate(new SomeError()));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // propagate
      public void testPropagate_noneDeclared_checked() {
        RuntimeException expected =
            assertThrows(RuntimeException.class, () -> propagate(new SomeCheckedException()));
        assertThat(expected).hasCauseThat().isInstanceOf(SomeCheckedException.class);
      }
    
      @GwtIncompatible // throwIfInstanceOf
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 15K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/MoreCollectors.java

        @Nullable T element;
        List<T> extras;
        final @Nullable Supplier<? extends RuntimeException> exceptionSupplier;
    
        ToOptionalState(@Nullable Supplier<? extends RuntimeException> exceptionSupplier) {
          this.element = null;
          this.extras = emptyList();
          this.exceptionSupplier = exceptionSupplier;
        }
    
        RuntimeException multiples(boolean overflow) {
          if (exceptionSupplier != null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 18 16:22:33 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/FindMissingDocumentationFiles.java

                    for (String error : allErrors) {
                        System.out.println(error);
                    }
                    throw new RuntimeException("Found " + allErrors.size() + " missing documentation files or anchors.");
                } else {
                    System.out.println("All documentation files and anchors from the JSON files were found in the directory.");
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Aug 21 15:38:58 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/util/concurrent/Futures.java

       *       RuntimeException}, or an {@link ExecutionError} if the cause is an {@code Error}.
       *   <li>Any {@link InterruptedException} is wrapped in an {@code X} (after restoring the
       *       interrupt).
       *   <li>Any {@link CancellationException} is propagated untouched, as is any other {@link
       *       RuntimeException} (though {@code get} implementations are discouraged from throwing such
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 64.2K bytes
    - Click Count (0)
  8. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

            assertTrue(exception instanceof RuntimeCIFSException, "Should extend RuntimeCIFSException");
            assertTrue(exception instanceof RuntimeException, "Should be a RuntimeException");
        }
    
        @Test
        @DisplayName("Message constructor should create exception with specified message")
        void testMessageConstructor() {
            // Given & When
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

      public void testSubscriberThrowsException() throws Exception {
        RecordingSubscriberExceptionHandler handler = new RecordingSubscriberExceptionHandler();
        EventBus eventBus = new EventBus(handler);
        RuntimeException exception = new RuntimeException("but culottes have a tendency to ride up!");
        Object subscriber =
            new Object() {
              @Subscribe
              public void throwExceptionOn(String message) {
                throw exception;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/eventbus/EventBusTest.java

      public void testSubscriberThrowsException() throws Exception {
        RecordingSubscriberExceptionHandler handler = new RecordingSubscriberExceptionHandler();
        EventBus eventBus = new EventBus(handler);
        RuntimeException exception = new RuntimeException("but culottes have a tendency to ride up!");
        Object subscriber =
            new Object() {
              @Subscribe
              public void throwExceptionOn(String message) {
                throw exception;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
Back to Top