Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 130 for getCause (0.09 sec)

  1. src/test/java/org/codelibs/core/exception/SRuntimeExceptionTest.java

        public void testGetCause() throws Exception {
            final Throwable t = new NullPointerException("test");
            final ClRuntimeException ex = new ClRuntimeException("ECL0017", asArray(t), t);
            assertThat(ex.getCause(), is(t));
            ex.printStackTrace();
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/AbstractMojoExecutionException.java

        }
    
        /**
         * Constructs a new {@code AbstractMojoExecutionException} exception wrapping an underlying {@code Throwable}.
         *
         * @param cause the cause which is saved for later retrieval by the {@link #getCause()} method.
         *              A {@code null} value is permitted, and indicates that the cause is nonexistent or unknown.
         * @since 3.8.3
         */
        public AbstractMojoExecutionException(Throwable cause) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        exec.execute(task);
        runLatch.await();
        taskLatch.countDown();
    
        ExecutionException e = assertThrows(ExecutionException.class, () -> task.get(5, SECONDS));
        assertEquals(IllegalStateException.class, e.getCause().getClass());
    
        assertTrue(listenerLatch.await(5, SECONDS));
        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

            };
            client.setAccessTimeout(1);
            try {
                client.doGet("file:/tmp/test.txt");
                fail();
            } catch (CrawlingAccessException e) {
                assertTrue(e.getCause() instanceof InterruptedException);
            }
        }
    
        public void test_doHead_accessTimeoutTarget() {
            FileSystemClient client = new FileSystemClient() {
                @Override
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/ProjectBuildFailureException.java

            this.projectId = projectId;
        }
    
        public MojoFailureException getMojoFailureException() {
            return (MojoFailureException) getCause();
        }
    
        public String getProjectId() {
            return projectId;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/execution/BuildFailure.java

            this.cause = cause;
        }
    
        /**
         * Gets the cause of the build failure.
         *
         * @return The cause of the build failure or {@code null} if unknown.
         */
        public Throwable getCause() {
            return cause;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        try {
          method.invoke(wrapper, getParameterValues(method));
          fail(method + " failed to throw exception as is.");
        } catch (InvocationTargetException e) {
          if (exception != e.getCause()) {
            throw new RuntimeException(e);
          }
        } catch (IllegalAccessException e) {
          throw new AssertionError(e);
        }
      }
    
      private static <T> void testEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/DefaultMavenParser.java

                return CommonsCliMavenOptions.parse(source, args.toArray(new String[0]));
            } catch (ParseException e) {
                throw new ParserException("Failed to parse source " + source + ": " + e.getMessage(), e.getCause());
            }
        }
    
        @Override
        protected MavenOptions assembleOptions(List<MavenOptions> parsedOptions) {
            return LayeredMavenOptions.layerMavenOptions(parsedOptions);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFileInputStream.java

        }
    
    
        protected static IOException seToIoe ( SmbException se ) {
            IOException ioe = se;
            Throwable root = se.getCause();
            if ( root instanceof TransportException ) {
                ioe = (TransportException) root;
                root = ( (TransportException) ioe ).getCause();
            }
            if ( root instanceof InterruptedException ) {
                ioe = new InterruptedIOException(root.getMessage());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 08:55:14 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReader.java

                    result.setRepository(resolveResult.getRepository());
                } catch (ArtifactResolutionException e) {
                    if (e.getCause() instanceof ArtifactNotFoundException) {
                        missingDescriptor(session, trace, a, (Exception) e.getCause());
                        if ((getPolicy(session, a, request) & ArtifactDescriptorPolicy.IGNORE_MISSING) != 0) {
                            return null;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top