Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1091 - 1100 of 1,947 for threw (0.02 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainManagerException.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 ToolchainManager}.
     *
     * @since 4.0.0
     */
    @Experimental
    public class ToolchainManagerException 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)
  8. src/test/java/org/codelibs/fess/exception/CommandExecutionExceptionTest.java

        public void test_exceptionThrown() {
            // Test that the exception can be thrown and caught properly
            String expectedMessage = "Command execution error occurred";
    
            try {
                throw new CommandExecutionException(expectedMessage);
            } catch (CommandExecutionException e) {
                assertEquals(expectedMessage, e.getMessage());
                assertNull(e.getCause());
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/opensearch/common/ImplementedInvokerAssistantTest.java

            assertEquals("Logic", result[4]);
            assertEquals("LogicImpl", result[5]);
        }
    
        // Test toBeDisposable with null process
        public void test_toBeDisposable_nullProcess() {
            // Should not throw exception
            invokerAssistant.toBeDisposable(null);
        }
    
        // Test toBeDisposable with valid process
        public void test_toBeDisposable_validProcess() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/DcerpcBindingTest.java

            String endpoint = "\\pipe\\unknown";
            DcerpcException thrown = assertThrows(DcerpcException.class, () -> {
                dcerpcBinding.setOption("endpoint", endpoint);
            }, "Should throw DcerpcException for unknown pipe endpoint.");
    
            assertTrue(thrown.getMessage().contains("Bad endpoint"), "Exception message should indicate a bad endpoint.");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top