Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1091 - 1100 of 3,192 for throwIt (0.07 sec)

  1. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

      Object writeReplace() {
        return new EnumSerializedForm<>(delegate);
      }
    
      @J2ktIncompatible // serialization
      private void readObject(ObjectInputStream stream) throws InvalidObjectException {
        throw new InvalidObjectException("Use EnumSerializedForm");
      }
    
      /*
       * This class is used to serialize ImmutableEnumMap instances.
       */
      @J2ktIncompatible // serialization
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  2. impl/maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

        @BeforeEach
        void setUp() throws Exception {
            testDirectory = new File(getBasedir(), BASE_POM_DIR);
            new File(getBasedir(), BASE_MIXIN_DIR);
            EmptyLifecycleBindingsInjector.useEmpty();
        }
    
        /**
         * Will throw exception if url is empty. MNG-4050
         *
         * @throws Exception in case of issue
         */
        @Test
        void testEmptyUrl() throws Exception {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Sep 17 10:01:14 UTC 2025
    - 94.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMapEntrySet.java

        @Override
      Object writeReplace() {
        return new EntrySetSerializedForm<>(map());
      }
    
      @GwtIncompatible
      @J2ktIncompatible
        private void readObject(ObjectInputStream stream) throws InvalidObjectException {
        throw new InvalidObjectException("Use EntrySetSerializedForm");
      }
    
      @GwtIncompatible
      @J2ktIncompatible
      private static final class EntrySetSerializedForm<K, V> implements Serializable {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 22:50:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/SmbTreeTest.java

         * Verifies that unwrap can throw exceptions when appropriate.
         */
        @Test
        void testUnwrap_throwsException() {
            when(smbTree.unwrap(any())).thenThrow(new ClassCastException("Cannot unwrap to specified type"));
    
            assertThrows(ClassCastException.class, () -> smbTree.unwrap(CustomSmbTree.class),
                    "Should throw ClassCastException when type is incompatible");
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/FunnelsTest.java

            };
        try {
          funnel.funnel(null, primitiveSink);
          fail();
        } catch (NullPointerException ok) {
        }
      }
    
      public void testAsOutputStream() throws Exception {
        PrimitiveSink sink = mock(PrimitiveSink.class);
        OutputStream out = Funnels.asOutputStream(sink);
        byte[] bytes = {1, 2, 3, 4};
        out.write(255);
        out.write(bytes);
        out.write(bytes, 1, 2);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt

        interceptorThrowsRuntimeExceptionSynchronous(true)
      }
    
      /**
       * When an interceptor throws an unexpected exception, synchronous callers can catch it and deal
       * with it.
       */
      private fun interceptorThrowsRuntimeExceptionSynchronous(network: Boolean) {
        addInterceptor(network) { chain: Interceptor.Chain? -> throw RuntimeException("boom!") }
        val request =
          Request
            .Builder()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 16:11:23 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java

            this.repoSystem = repoSystem;
            this.decorators = decorators;
        }
    
        @Override
        public DependencyResolutionResult resolve(DependencyResolutionRequest request)
                throws DependencyResolutionException {
            final RequestTrace trace = RequestTrace.newChild(null, request);
    
            final DefaultDependencyResolutionResult result = new DefaultDependencyResolutionResult();
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 10:13:56 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/ElementOrder.java

      public Type type() {
        return type;
      }
    
      /**
       * Returns the {@link Comparator} used.
       *
       * @throws UnsupportedOperationException if comparator is not defined
       */
      public Comparator<T> comparator() {
        if (comparator != null) {
          return comparator;
        }
        throw new UnsupportedOperationException("This ordering does not define a comparator.");
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/ElementOrder.java

      public Type type() {
        return type;
      }
    
      /**
       * Returns the {@link Comparator} used.
       *
       * @throws UnsupportedOperationException if comparator is not defined
       */
      public Comparator<T> comparator() {
        if (comparator != null) {
          return comparator;
        }
        throw new UnsupportedOperationException("This ordering does not define a comparator.");
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. CLAUDE.md

        converter.init();
    } catch (Exception e) {
        throw new SuggesterException("Failed to initialize converter: "
                                    + converter.getClass().getName(), e);
    }
    ```
    
    **Resource Management:**
    ```java
    try (InputStream is = getClass().getClassLoader()
            .getResourceAsStream("suggest_indices/suggest.json")) {
        if (is == null) {
            throw new IOException("Resource not found");
        }
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top