Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 52 for catch (0.02 seconds)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                } catch (ModelParseException e) {
                    if (!strict) {
                        throw e;
                    }
    
                    options.put(ModelProcessor.IS_STRICT, Boolean.FALSE);
    
                    try {
                        model = modelProcessor.read(modelSource.getInputStream(), options);
                    } catch (ModelParseException ne) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Mar 30 23:08:08 GMT 2025
    - 55.3K bytes
    - Click Count (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                return execute(cliRequest);
            } catch (ExitException e) {
                return e.exitCode;
            } catch (UnrecognizedOptionException e) {
                // pure user error, suppress stack trace
                return 1;
            } catch (BuildAbort e) {
                CLIReportingUtils.showError(slf4jLogger, "ABORTED", e, cliRequest.showErrors);
    
                return 2;
            } catch (Exception e) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                        }
    
                        ModelBuilderResult result;
                        try {
                            result = modelBuilderSession.build(request);
                        } catch (ModelBuilderException e) {
                            result = e.getResult();
                            if (result == null || result.getEffectiveModel() == null) {
                                throw new ProjectBuildingException(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 51.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.putAll(singletonMap(4, "four"));
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.remove(4);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 65K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                    return mavenPluginManager.getMojoDescriptor(
                            plugin, goal, project.getRemotePluginRepositories(), session.getRepositorySession());
                } catch (MavenException e) {
                    throw e;
                } catch (Exception e) {
                    throw new MavenException(e);
                }
            }
    
            private MojoDescriptor getMojoDescriptor(MavenProject project, String task) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 55.1K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

            while (i < contentLength()) {
              sink.write(chunk!!)
              sink.flush()
              Thread.sleep(100)
              i += chunk.size
            }
          } catch (e: IOException) {
            ioe = e
          } catch (e: InterruptedException) {
            throw RuntimeException(e)
          }
        }
      }
    
      @Test
      fun requestBodyMultipleFailuresReportedOnlyOnce() {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.5K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        } catch (AssertionError expected) {
          return;
        }
        fail();
      }
    
      public void testAssertSubtypeTokenBeforeSupertypeToken_duplicate() {
        try {
          assertSubtypeTokenBeforeSupertypeToken(
              ImmutableList.of(TypeToken.of(String.class), TypeToken.of(String.class)));
        } catch (AssertionError expected) {
          return;
        }
        fail();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 89K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

        return try {
          URI(uri)
        } catch (e: URISyntaxException) {
          // Unlikely edge case: the URI has a forbidden character in the fragment. Strip it & retry.
          try {
            val stripped = uri.replace(Regex("[\\u0000-\\u001F\\u007F-\\u009F\\p{javaWhitespace}]"), "")
            URI.create(stripped)
          } catch (e1: Exception) {
            throw RuntimeException(e) // Unexpected!
          }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 63.5K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/MapsTest.java

        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.putAll(singletonMap(4, "four"));
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          unmod.remove(4);
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 22:56:33 GMT 2025
    - 62.7K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        )
        server.enqueue(MockResponse(body = "ABC"))
        val latch = CountDownLatch(1)
        val responses: BlockingQueue<String?> = SynchronousQueue()
        val authenticator =
          okhttp3.Authenticator { route: Route?, response: Response? ->
            responses.offer(response!!.body.string())
            try {
              latch.await()
            } catch (e: InterruptedException) {
              throw AssertionError()
            }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 67.4K bytes
    - Click Count (0)
Back to Top