- Sort Score
- Num 10 results
- Language All
Results 251 - 260 of 1,810 for cause (0.02 seconds)
-
okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt
} catch (e: IllegalAccessException) { throw AssertionError(e) } catch (e: InvocationTargetException) { // https://github.com/square/okhttp/issues/5587 val cause = e.cause when { cause is NullPointerException && cause.message == "ssl == null" -> null else -> throw AssertionError(e) } } } companion object { val playProviderFactory: DeferredSocketAdapter.Factory =
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 4.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
@Test fun evictOnInsert() { cache.close() createNewCacheWithSize(10) set("a", "a", "aaa") // size 4 set("b", "bb", "bbbb") // size 6 assertThat(cache.size()).isEqualTo(10) // Cause the size to grow to 12 should evict 'A'. set("c", "c", "c") cache.flush() assertThat(cache.size()).isEqualTo(8) assertAbsent("a") assertValue("b", "bb", "bbbb") assertValue("c", "c", "c")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 59.4K bytes - Click Count (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/InvalidArtifactRTException.java
this.type = type; this.baseMessage = message; } public InvalidArtifactRTException( String groupId, String artifactId, String version, String type, String message, Throwable cause) { super(cause); this.groupId = groupId; this.artifactId = artifactId; this.version = version; this.type = type; this.baseMessage = message; } @OverrideCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.4K bytes - Click Count (0) -
android-test/src/test/kotlin/okhttp/android/test/NonRobolectricOkHttpClientTest.kt
* See the License for the specific language governing permissions and * limitations under the License. * */ package okhttp.android.test import assertk.all import assertk.assertFailure import assertk.assertions.cause import assertk.assertions.hasClass import assertk.assertions.hasMessage import assertk.assertions.isNotNull import java.io.IOException import org.junit.Test import org.junit.runner.RunWith
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 28 07:33:49 GMT 2025 - 1.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ForwardingMapTest.java
// this is a legit exception } } } catch (Throwable cause) { throw new InvocationTargetException(cause, method + " with args: " + Arrays.toString(args)); } } } private static LinkageError newLinkageError(Throwable cause) { return new LinkageError(cause.toString(), cause); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 12.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java
assertNotNull(result); } catch (Exception e) { // Expected behavior when components are not fully initialized Throwable cause = e.getCause(); assertNotNull(cause); } } catch (Exception e) { // Test setup exception is acceptable assertNotNull(e); } }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11K bytes - Click Count (0) -
samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt
} } catch (ite: InvocationTargetException) { if (!expectedFailure(className, ite.cause!!)) { throw ite.cause!! } } } @Suppress("UNUSED_PARAMETER") private fun expectedFailure( className: String, cause: Throwable, ): Boolean = when (className) { "okhttp3.recipes.CheckHandshake" -> true // by designCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 2.8K bytes - Click Count (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
try { dns.lookup("google.com") fail<Any>() } catch (ioe: IOException) { assertThat(ioe.message).isEqualTo("google.com") val cause = ioe.cause!! assertThat(cause).isInstanceOf<IOException>() assertThat(cause).hasMessage("response size exceeds limit (65536 bytes): 65537 bytes") } } @Test fun failOnBadResponse() { server.enqueue(dnsResponse("00"))Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 11.9K bytes - Click Count (0) -
build-logic/build.gradle.kts
if (jvmArgs.size > 1) { throw GradleException("gradle.properties and build-logic/gradle.properties have different org.gradle.jvmargs " + "which may cause two daemons to be spawned on CI and in IDEA. " + "Use the same org.gradle.jvmargs for both builds.") } } } fun readProperties(propertiesFile: File) = java.util.Properties().apply {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Feb 09 03:14:32 GMT 2026 - 1.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/CrawlerLogHelper.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 8.3K bytes - Click Count (0)