Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 641 - 650 of 3,282 for throwIt (0.05 seconds)

  1. src/test/java/jcifs/SmbPipeHandleTest.java

            /**
             * Verifies that the close method can be called without throwing an exception.
             * @throws CIFSException if an error occurs during close.
             */
            @Test
            public void testClose() throws CIFSException {
                assertDoesNotThrow(() -> smbPipeHandle.close(), "close() should not throw an exception on a mock object.");
                // Verify that the close method was called
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/net/HostSpecifier.java

       * specifier that is not already known to be valid.
       *
       * @throws ParseException if the specifier is not valid.
       */
      @CanIgnoreReturnValue // TODO(b/219820829): consider removing
      public static HostSpecifier from(String specifier) throws ParseException {
        try {
          return fromValid(specifier);
        } catch (IllegalArgumentException e) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 6K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java

                Collection<String> scopesToCollect,
                Collection<String> scopesToResolve,
                MavenSession session,
                boolean aggregating,
                Set<Artifact> projectArtifacts)
                throws LifecycleExecutionException {
            ClassLoader tccl = Thread.currentThread().getContextClassLoader();
            try {
                ClassLoader projectRealm = project.getClassRealm();
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

    import okhttp3.internal.withSuppressed
    
    /**
     * This interceptor recovers from failures and follows redirects as necessary. It may throw an
     * [IOException] if the call was canceled.
     */
    class RetryAndFollowUpInterceptor(
      private val client: OkHttpClient,
    ) : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val realChain = chain as RealInterceptorChain
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue May 27 14:58:02 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  5. compat/maven-model/src/test/java/org/apache/maven/model/v4/Xpp3DomPerfTest.java

                } catch (XMLStreamException e) {
                    throw new RuntimeException("Error parsing: " + pom, e);
                }
            }
            return i;
        }
    
        /**
         * <p>main.</p>
         *
         * @param args a {@link String} object.
         * @throws org.openjdk.jmh.runner.RunnerException if any.
         */
        public static void main(String... args) throws RunnerException {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  6. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java

                if (e.getCause() instanceof PluginResolutionException pluginResolutionException) {
                    throw pluginResolutionException;
                }
                if (e.getCause() instanceof PluginContainerException pluginContainerException) {
                    throw pluginContainerException;
                }
                throw e;
            }
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            void testHaveResponseCalled() throws SMBProtocolDecodingException {
                TestServerMessageBlock2 customMessage = new TestServerMessageBlock2(mockConfig) {
                    boolean haveResponseCalled = false;
    
                    @Override
                    protected void haveResponse(byte[] buffer, int start, int len) throws SMBProtocolDecodingException {
                        haveResponseCalled = true;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 39.5K bytes
    - Click Count (0)
  8. docs/features/https.md

                      .build())
              .build();
    
          public void run() throws Exception {
            Request request = new Request.Builder()
                .url("https://publicobject.com/robots.txt")
                .build();
    
            try (Response response = client.newCall(request).execute()) {
              if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Click Count (0)
  9. samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java

        }
    
        @Override public MediaType contentType() {
          return MEDIA_TYPE_MARKDOWN;
        }
    
        @Override public void writeTo(BufferedSink sink) throws IOException {
          sink.writeAll(pipe.source());
        }
      }
    
      public static void main(String... args) throws Exception {
        new PostStreamingWithPipe().run();
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Jul 06 03:18:15 GMT 2018
    - 3.1K bytes
    - Click Count (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PomDiscovery.java

         * @return a map of Path to Document for all discovered POM files
         * @throws IOException if there's an error reading files
         * @throws DomTripException if there's an error parsing XML
         */
        public static Map<Path, Document> discoverPoms(Path startDirectory) throws IOException, DomTripException {
            Map<Path, Document> pomMap = new HashMap<>();
    
            // Find and load the root POM
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 4.8K bytes
    - Click Count (0)
Back to Top