Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 341 - 350 of 1,783 for exception (0.05 seconds)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/cache/BatchRequestException.java

    import org.apache.maven.api.services.Request;
    import org.apache.maven.api.services.Result;
    
    /**
     * Exception thrown when a batch request operation fails. This exception contains the results
     * of all requests that were attempted, including both successful and failed operations.
     * <p>
     * The exception provides access to detailed results through {@link #getResults()}, allowing
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  2. compat/maven-toolchain-builder/src/test/java/org/apache/maven/toolchain/building/ToolchainsBuildingExceptionTest.java

        }
    
        @Test
        void testOneProblem() {
            ProblemCollector problemCollector = ProblemCollectorFactory.newInstance(null);
            problemCollector.add(Problem.Severity.ERROR, "MESSAGE", 3, 5, new Exception());
            ToolchainsBuildingException e = new ToolchainsBuildingException(problemCollector.getProblems());
            assertEquals(
                    "1 problem was encountered while building the effective toolchains" + LS
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Mar 26 19:31:34 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainManagerException.java

    /**
     * The Exception class throw by the {@link ToolchainManager}.
     *
     * @since 4.0.0
     */
    @Experimental
    public class ToolchainManagerException extends MavenException {
    
        /**
         * @param message the message to give
         * @param e the {@link Exception}
         */
        public ToolchainManagerException(String message, Exception e) {
            super(message, e);
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 25 21:57:56 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/Streams.java

        Exception exception = null;
        for (BaseStream<?, ?> stream : toClose) {
          try {
            stream.close();
          } catch (Exception e) { // sneaky checked exception
            if (exception == null) {
              exception = e;
            } else {
              exception.addSuppressed(e);
            }
          }
        }
        if (exception != null) {
          // Normally this is a RuntimeException that doesn't need sneakyThrow.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 21 15:40:45 GMT 2025
    - 36.8K bytes
    - Click Count (0)
  5. guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

       * should cause {@link #run()} to return.
       */
      protected abstract void run() throws Exception;
    
      /**
       * Stop the service. This method is invoked on the execution thread.
       *
       * <p>By default this method does nothing.
       */
      // TODO: consider supporting a TearDownTestCase-like API
      protected void shutDown() throws Exception {}
    
      /**
       * Invoked to request the service to stop.
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/InferenceStrategyTest.java

        class DependencyInferenceTests {
    
            @Test
            @DisplayName("should remove dependency version for project artifact")
            void shouldRemoveDependencyVersionForProjectArtifact() throws Exception {
                String parentPomXml = PomBuilder.create()
                        .namespace("http://maven.apache.org/POM/4.1.0")
                        .modelVersion("4.1.0")
                        .groupId("com.example")
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 35.2K bytes
    - Click Count (0)
  7. samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          System.out.println(response.body().string());
        }
      }
    
      public static void main(String... args) throws Exception {
        new RequestBodyCompression().run();
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 04 17:43:43 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectBuilderException.java

    /**
     * The Exception class throw by the {@link ProjectBuilder} service.
     *
     * @since 4.0.0
     */
    @Experimental
    public class ProjectBuilderException extends MavenException {
    
        /**
         * @param message the message to give
         * @param e the {@link Exception}
         */
        public ProjectBuilderException(String message, Exception e) {
            super(message, e);
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 25 21:57:56 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  9. api/maven-api-core/src/main/java/org/apache/maven/api/services/PrompterException.java

    /**
     * The Exception class throw by the {@link Prompter} service.
     *
     * @since 4.0.0
     */
    @Experimental
    public class PrompterException extends MavenException {
    
        public PrompterException(String message) {
            super(message);
        }
    
        /**
         * @param message the message to give
         * @param e the {@link Exception}
         */
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Sep 25 21:57:56 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

         * it may throw the exception on the (n-1)th element (oops!).
         */
    
        /* Checks the case where the first element throws an exception. */
    
        List<Integer> list = emptyList();
        Iterator<Integer> iterator = peekingIterator(new ThrowsAtEndIterator<Integer>(list));
        assertNextThrows(iterator);
    
        /* Checks the case where a later element throws an exception. */
    
        list = Lists.newArrayList(1, 2);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 8.5K bytes
    - Click Count (0)
Back to Top