Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for getExceptions (0.24 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactResolverResult.java

             *
             * @return A {@link Map} where keys are {@link Repository} instances and values are {@link Exception} instances.
             */
            Map<Repository, List<Exception>> getExceptions();
    
            /**
             * Returns the repository from which the artifact was resolved.
             *
             * @return The {@link Repository} instance.
             */
            Repository getRepository();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Feb 07 00:45:02 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultResolutionErrorHandler.java

            if (result.hasExceptions()) {
                throw new ArtifactResolutionException(
                        "Unknown error during artifact resolution, " + request + ", " + result.getExceptions(),
                        request.getArtifact(),
                        request.getRemoteRepositories());
            }
        }
    
        private static <T> List<T> toList(Collection<T> items) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionRangeResolverResult.java

         * Gets the exceptions that occurred while resolving the version range.
         *
         * @return The list of exceptions that occurred during resolution, never {@code null}
         */
        @Nonnull
        List<Exception> getExceptions();
    
        /**
         * Gets the versions (in ascending order) that matched the requested range.
         *
         * @return The list of matching versions, never {@code null}. An empty list indicates
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 29 08:17:07 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionResolverResult.java

    import org.apache.maven.api.annotations.Nonnull;
    
    /**
     *
     * @since 4.0.0
     */
    @Experimental
    public interface VersionResolverResult extends Result<VersionResolverRequest> {
    
        @Nonnull
        List<Exception> getExceptions();
    
        @Nonnull
        Version getVersion();
    
        @Nonnull
        Optional<Repository> getRepository();
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 29 08:17:07 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverResult.java

        /**
         * Gets the exceptions that occurred while building the dependency graph.
         *
         * @return the exceptions that occurred, never {@code null}
         */
        @Nonnull
        List<Exception> getExceptions();
    
        /**
         * Gets the root node of the dependency graph.
         *
         * @return the root node of the dependency graph or {@code null} if none
         */
        @Nullable
        Node getRoot();
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Mar 05 14:29:21 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java

                    System.err.println("Missing: " + artifact);
                }
            }
    
            if (result.hasExceptions()) {
                for (Exception e : result.getExceptions()) {
                    e.printStackTrace();
                }
            }
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Mar 26 10:49:22 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/repository/MetadataResolutionResult.java

        // ------------------------------------------------------------------------
    
        public boolean hasExceptions() {
            return exceptions != null && !exceptions.isEmpty();
        }
    
        public List<Exception> getExceptions() {
            return exceptions == null ? Collections.emptyList() : Collections.unmodifiableList(exceptions);
        }
    
        // ------------------------------------------------------------------------
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionResult.java

        // ------------------------------------------------------------------------
    
        public boolean hasExceptions() {
            return exceptions != null && !exceptions.isEmpty();
        }
    
        public List<Exception> getExceptions() {
            return exceptions == null ? Collections.emptyList() : Collections.unmodifiableList(exceptions);
        }
    
        // ------------------------------------------------------------------------
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 10K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

        }
    
        @Test
        @DisplayName("Test Response interface methods - getException")
        void testGetException() {
            // Given
            Exception expectedException = new Exception("Test exception");
            when(response.getException()).thenReturn(expectedException);
    
            // When
            Exception actualException = response.getException();
    
            // Then
            assertEquals(expectedException, actualException);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/transport/ResponseTest.java

            when(mockResponse.getException()).thenReturn(testException);
            assertEquals(testException, mockResponse.getException());
    
            // Test null exception
            when(mockResponse.getException()).thenReturn(null);
            assertNull(mockResponse.getException());
    
            // Verify the method was called
            verify(mockResponse, times(2)).getException();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top