Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 161 for getCauses (0.24 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java

                    }
                });
            } catch (RuntimeException e) {
                if (e.getCause() instanceof PluginResolutionException pluginResolutionException) {
                    throw pluginResolutionException;
                }
                if (e.getCause() instanceof PluginContainerException pluginContainerException) {
                    throw pluginContainerException;
                }
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  2. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. impl/maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java

        @Test
        void testHandleExceptionLoopInCause() {
            // Some broken exception that does return "this" as getCause
            AtomicReference<Throwable> causeRef = new AtomicReference<>(null);
            Exception cause2 = new RuntimeException("loop") {
                @Override
                public synchronized Throwable getCause() {
                    return causeRef.get();
                }
            };
            causeRef.set(cause2);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java

        assertTrue(future.isDone());
        assertThat(tryInternalFastPathGetFailure(future)).isNull();
        CancellationException e = assertThrows(CancellationException.class, () -> future.get());
        assertThat(e.getCause()).isNotNull();
      }
    
      public void testCancel_notDoneInterrupt() throws Exception {
        Future<?> future = newFutureInstance();
        assertTrue(future.cancel(true));
        assertTrue(future.isCancelled());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            // Then
            assertEquals(original.getErrorCode(), retry.getErrorCode());
            assertEquals(original.getMessage(), retry.getMessage());
            assertEquals(original.getCause(), retry.getCause());
            assertNotNull(retry.getContext());
        }
    
        @Test
        @DisplayName("Should format message correctly")
        void testMessageFormatting() {
            // With custom message
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

          return future.get();
        } catch (InterruptedException e) {
          currentThread().interrupt();
          throw newWithCause(exceptionClass, e);
        } catch (ExecutionException e) {
          wrapAndThrowExceptionOrError(e.getCause(), exceptionClass);
          throw new AssertionError();
        }
      }
    
      /** Implementation of {@link Futures#getChecked(Future, Class, long, TimeUnit)}. */
      @CanIgnoreReturnValue
      @ParametricNullness
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  7. impl/maven-core/src/test/java/org/apache/maven/lifecycle/LifecycleExecutorTest.java

                    assertNotNull(event.getProject());
                    assertNotNull(event.getExecution());
                    assertNotNull(event.getMojo());
                    assertNull(event.getCause());
    
                    log.add("beforeMojoExecution " + event.getProject().getArtifactId() + ":"
                            + event.getExecution().getExecutionId());
                }
    
                @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/exception/SUnsupportedOperationExceptionTest.java

                    new ClUnsupportedOperationException("hoge", new NullPointerException());
            assertThat(clUnsupportedOperationException.getMessage(), is("hoge"));
            assertThat(clUnsupportedOperationException.getCause(), instanceOf(NullPointerException.class));
        }
    
        /**
         * Test method for
         * {@link org.codelibs.core.exception.ClUnsupportedOperationException#SUnsupportedOperationException(java.lang.Throwable)}
         * .
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/logging/LoggingExecutionListener.java

            if (status != null) {
                halted = status.isHalted();
            } else {
                // assume sensible default
                Throwable t = projectExecutionEvent.getCause();
                halted = (t instanceof RuntimeException || !(t instanceof Exception))
                        || !MavenExecutionRequest.REACTOR_FAIL_NEVER.equals(session.getReactorFailureBehavior())
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ExecutionError.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * {@link Error} variant of {@link java.util.concurrent.ExecutionException}. As with {@code
     * ExecutionException}, the error's {@linkplain #getCause() cause} comes from a failed task,
     * possibly run in another thread. That cause should itself be an {@code Error}; if not, use {@code
     * ExecutionException} or {@link UncheckedExecutionException}. This allows the client code to
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4K bytes
    - Viewed (0)
Back to top