- Sort Score
- Result 10 results
- Languages All
Results 1031 - 1040 of 1,812 for rethrow (0.04 sec)
-
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) -
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) -
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) -
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) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt
// Throws InaccessibleObjectException (added in JDK9) on JDK 17 due to // JEP 403 Strongly Encapsulate JDK Internals. if (e.javaClass.name != "java.lang.reflect.InaccessibleObjectException") { throw e } null } } /** * Configure TLS extensions on `sslSocket` for `route`. */ open fun configureTlsExtensions( sslSocket: SSLSocket, hostname: String?,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 8.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java
} /** * Guaranteed to throw an exception and leave the map unmodified. * * @throws UnsupportedOperationException always * @deprecated Unsupported operation. */ @CanIgnoreReturnValue @Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException") public <T extends B> @Nullable T putInstance(Class<T> type, T value) { throw new UnsupportedOperationException(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/TlsVersion.kt
when (javaName) { "TLSv1.3" -> TLS_1_3 "TLSv1.2" -> TLS_1_2 "TLSv1.1" -> TLS_1_1 "TLSv1" -> TLS_1_0 "SSLv3" -> SSL_3_0 else -> throw IllegalArgumentException("Unexpected TLS version: $javaName") } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapWithBadHashesMapInterfaceTest.java
@GwtCompatible @NullUnmarked public class ImmutableMapWithBadHashesMapInterfaceTest extends AbstractImmutableMapMapInterfaceTest<Object, Integer> { @Override protected Map<Object, Integer> makeEmptyMap() { throw new UnsupportedOperationException(); } @Override protected Map<Object, Integer> makePopulatedMap() { Colliders colliders = new Colliders(); return ImmutableMap.of( colliders.e0(), 0,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/PostFile.kt
url = "https://api.github.com/markdown/raw".toHttpUrl(), body = file.asRequestBody(MEDIA_TYPE_MARKDOWN), ) 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.4K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectBuilderException.java
* under the License. */ package org.apache.maven.api.services; import java.io.Serial; import org.apache.maven.api.annotations.Experimental; /** * The Exception class throw by the {@link ProjectBuilder} service. * * @since 4.0.0 */ @Experimental public class ProjectBuilderException extends MavenException { @Serial
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Wed Oct 02 21:26:05 UTC 2024 - 1.3K bytes - Viewed (0)