Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 161 for getCauses (3.63 sec)

  1. guava-tests/test/com/google/common/base/ThrowablesTest.java

        }
      }
    
      @GwtIncompatible // Throwables.getCauseAs(Throwable, Class)
      public void testGetCauseAs() {
        SomeCheckedException cause = new SomeCheckedException();
        SomeChainingException thrown = new SomeChainingException(cause);
    
        assertThat(thrown).hasCauseThat().isSameInstanceAs(cause);
        assertThat(Throwables.getCauseAs(thrown, SomeCheckedException.class)).isSameInstanceAs(cause);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        }
      }
    
      @GwtIncompatible // Throwables.getCauseAs(Throwable, Class)
      public void testGetCauseAs() {
        SomeCheckedException cause = new SomeCheckedException();
        SomeChainingException thrown = new SomeChainingException(cause);
    
        assertThat(thrown).hasCauseThat().isSameInstanceAs(cause);
        assertThat(Throwables.getCauseAs(thrown, SomeCheckedException.class)).isSameInstanceAs(cause);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

        Assert.assertTrue(countDownLatch.await(1L, SECONDS));
    
        try {
          Assert.assertEquals(expectedData, future.get());
        } catch (ExecutionException e) {
          throw e.getCause();
        }
      }
    
      /**
       * Verify that the listener completes in a reasonable amount of time, and Asserts that the future
       * throws an {@code ExecutableException} and that the cause of the {@code ExecutableException} is
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 18:12:42 GMT 2023
    - 3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/eventbus/Subscriber.java

        } catch (IllegalAccessException e) {
          throw new Error("Method became inaccessible: " + event, e);
        } catch (InvocationTargetException e) {
          if (e.getCause() instanceof Error) {
            throw (Error) e.getCause();
          }
          throw e;
        }
      }
    
      /** Gets the context for the given event. */
      private SubscriberExceptionContext context(Object event) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 4.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

        ExecutionException expected =
            assertThrows(
                ExecutionException.class,
                () -> service.callWithTimeout(BAD_CALLABLE, ENOUGH_MS, MILLISECONDS));
        assertThat(expected.getCause()).isInstanceOf(SampleException.class);
      }
    
      public void testCallUninterruptiblyWithTimeout_goodCallableWithEnoughTime() throws Exception {
        Stopwatch stopwatch = Stopwatch.createStarted();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  6. 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)}
         * .
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  7. 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());
                }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Jan 09 20:57:17 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLookup.java

        }
    
        @Override
        public <T> Optional<T> lookupOptional(Class<T> type) {
            try {
                return Optional.of(container.lookup(type));
            } catch (ComponentLookupException e) {
                if (e.getCause() instanceof NoSuchElementException) {
                    return Optional.empty();
                }
                throw new LookupException(e);
            }
        }
    
        @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/DcerpcException.java

         */
        public int getErrorCode () {
            return this.error;
        }
    
    
        /**
         * 
         * @return the root cause
         * @deprecated use {@link #getCause()}
         */
        @Deprecated
        public Throwable getRootCause () {
            return getCause();
        }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 09:02:44 GMT 2020
    - 2.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/sso/SsoAction.java

                    throw responseManager.new400("Unsupported request type.");
                }
                return actionResponse;
            } catch (final SsoMessageException e) {
                if (e.getCause() == null) {
                    if (logger.isDebugEnabled()) {
                        logger.debug("Metadata response.", e);
                    }
                    saveInfo(e.getMessageCode());
                } else {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.1K bytes
    - Viewed (0)
Back to top