Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for catch (0.18 sec)

  1. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java

            }
            GetTask getTask = new GetTask(source);
            getTask.setDataPath(target);
            try {
                transporter.get(getTask);
                return true;
            } catch (Exception e) {
                if (Transporter.ERROR_NOT_FOUND != transporter.classify(e)) {
                    throw new RuntimeException(e);
                }
                return false;
            }
        }
    
        @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        try {
          iterator.next();
          fail("no exception thrown");
        } catch (NoSuchElementException expected) {
        }
        try {
          iterator.previous();
          fail("no exception thrown");
        } catch (NoSuchElementException expected) {
        }
        try {
          iterator.remove();
          fail("no exception thrown");
        } catch (UnsupportedOperationException expected) {
        }
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

                    && match(exclusion.getArtifactId(), candidate.getArtifactId());
        }
    
        private boolean match(String match, String text) {
            return match.equals("*") || match.equals(text);
        }
    
        @SuppressWarnings("checkstyle:parameternumber")
        private Model doLoadDependencyManagement(
                Model model,
                ModelBuilderRequest request,
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        try {
          ImmutableMap.of(null, 1);
          fail();
        } catch (NullPointerException expected) {
        }
    
        try {
          ImmutableMap.of("one", 1, null, 2);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testOfNullValue() {
        try {
          ImmutableMap.of("one", null);
          fail();
        } catch (NullPointerException expected) {
        }
    
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                                try {
                                    return listFuture.get();
                                } catch (InterruptedException e) {
                                    uncheckedThrow(e);
                                    return null;
                                } catch (ExecutionException e) {
                                    uncheckedThrow(e.getCause());
                                    return null;
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultArtifactDescriptorReader.java

                    versionResult = versionResolver.resolveVersion(session, versionRequest);
    
                    pomArtifact = pomArtifact.setVersion(versionResult.getVersion());
                } catch (VersionResolutionException e) {
                    result.addException(e);
                    throw new ArtifactDescriptorException(result);
                }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/MavenMetadata.java

                return Metadata.newInstance();
            }
    
            try (InputStream input = Files.newInputStream(metadataPath)) {
                return new MetadataStaxReader().read(input, false);
            } catch (IOException | XMLStreamException e) {
                throw new RepositoryException("Could not parse metadata " + metadataPath + ": " + e.getMessage(), e);
            }
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/ReactorReader.java

                        Files.delete(artifactPath.getParent());
                        Files.delete(artifactPath.getParent().getParent());
                    } catch (DirectoryNotEmptyException e) {
                        // ignore
                    }
                }
            } catch (IOException e) {
                LOGGER.error("Error while cleaning project local repository", e);
            }
        }
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultModelResolver.java

                        session.resolveArtifact(session.createArtifactCoordinate(groupId, artifactId, newVersion, "pom"));
                return ModelSource.fromPath(resolved.getValue(), groupId + ":" + artifactId + ":" + newVersion);
            } catch (VersionRangeResolverException | ArtifactResolverException e) {
                throw new ModelResolverException(
                        e.getMessage() + " (remote repositories: "
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultArtifactResolver.java

                        artifactManager.setPath(artifact, path);
                        paths.put(artifact, path);
                    }
                }
                return () -> paths;
            } catch (ArtifactResolutionException e) {
                throw new ArtifactResolverException("Unable to resolve artifact: " + e.getMessage(), e);
            }
        }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 3.6K bytes
    - Viewed (0)
Back to top