Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1081 - 1090 of 1,947 for threw (0.02 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Jdk9Platform.kt

        // java.lang.reflect.InaccessibleObjectException: Unable to make member of class
        // sun.security.ssl.SSLSocketFactoryImpl accessible:  module java.base does not export
        // sun.security.ssl to unnamed module @xxx
        throw UnsupportedOperationException(
          "clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 8 (>= 252) or JDK 9+",
        )
      }
    
      override fun newSSLContext(): SSLContext =
        when {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 16:52:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/concurrent/TaskRunnerRealBackendTest.kt

        assertThat(t3).isCloseTo(1750.0, 250.0)
      }
    
      @Test fun taskFailsWithUncheckedException() {
        queue.schedule("task", TimeUnit.MILLISECONDS.toNanos(100)) {
          log.put("failing task running")
          throw RuntimeException("boom!")
        }
    
        queue.schedule("task", TimeUnit.MILLISECONDS.toNanos(200)) {
          log.put("normal task running")
          return@schedule -1L
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/Progress.java

                  .build();
            })
            .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 Progress().run();
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jan 12 03:31:36 UTC 2019
    - 3.9K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/repository/DefaultArtifactRepositoryFactory.java

        }
    
        private void checkLayout(String repositoryId, String layoutId, ArtifactRepositoryLayout layout)
                throws UnknownRepositoryLayoutException {
            if (layout == null) {
                throw new UnknownRepositoryLayoutException(repositoryId, layoutId);
            }
        }
    
        @Override
        public ArtifactRepository createDeploymentArtifactRepository(
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/plugin/Mojo.java

     *
     * The primary entry point is the {@link #execute()} method, which encapsulates
     * the behavior of the Mojo and serves as the integration point with Maven. This
     * method may throw an {@link Exception} to signal any issues that prevent
     * successful execution of the Mojo.
     *
     * <p>
     * Annotations:
     * </p>
     * <ul>
     * <li>{@link Experimental}: Indicates that this interface or its implementation
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 29 08:21:00 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. .teamcity/src/main/kotlin/configurations/FunctionalTest.kt

                    TeamCityParallelTests::class.simpleName ->
                        TeamCityParallelTests(
                            methodJsonNode.get("numberOfBatches").asInt(),
                        )
    
                    else -> throw IllegalArgumentException("Unknown parallelization method")
                }
            }
        }
    }
    
    class FunctionalTest(
        model: CIBuildModel,
        id: String,
        name: String,
        description: String,
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Wed Feb 12 09:12:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/PostStreaming.kt

          Request(
            url = "https://api.github.com/markdown/raw".toHttpUrl(),
            body = requestBody,
          )
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          println(response.body.string())
        }
      }
    
      companion object {
        val MEDIA_TYPE_MARKDOWN = "text/x-markdown; charset=utf-8".toMediaType()
      }
    }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java

      static void interruptCurrentThread() {}
    
      static void rethrowIfErrorOtherThanStackOverflow(Throwable t) {
        if (t instanceof Error) {
          // There is no StackOverflowError under GWT/J2CL.
          throw (Error) t;
        }
      }
    
      static <V extends @Nullable Object> V get(AbstractFuture<V> future)
          throws InterruptedException, ExecutionException {
        return future.getFromAlreadyDoneTrustedFuture();
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 27 16:15:49 UTC 2025
    - 2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/Smb2EchoResponse.java

            final int start = bufferIndex;
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 4) {
                throw new SMBProtocolDecodingException("Expected structureSize = 4");
            }
            return bufferIndex - start;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java

         */
        @Test
        void assertThrowsCapturesExceptionAndMessage() {
            // Act & Assert
            SmbEndOfFileException thrown = assertThrows(SmbEndOfFileException.class, () -> {
                throw new SmbEndOfFileException();
            });
            assertEquals("Unexpectedly reached end of file", thrown.getMessage());
        }
    
        /**
         * toString should include both the class name and the default message.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top