Search Options

Results per page
Sort
Preferred Languages
Advance

Results 731 - 740 of 1,812 for rethrow (0.11 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

      }
    
      private void assertSetCountNegativeOldCount() {
        try {
          getMultiset().setCount(e3(), -1, 1);
          fail("calling setCount() with a negative oldCount should throw IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      // Negative oldCount.
    
      @CollectionFeature.Require(SUPPORTS_ADD)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        Exception expected = new IllegalArgumentException();
        Callable<String> callable =
            new Callable<String>() {
              @Override
              public String call() throws Exception {
                throw expected;
              }
            };
    
        AsyncCallable<String> asyncCallable =
            Callables.asAsyncCallable(callable, newDirectExecutorService());
    
        ListenableFuture<String> future = asyncCallable.call();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java

      public @Nullable Entry<E> lastEntry() {
        return delegate().lastEntry();
      }
    
      @Override
      public @Nullable Entry<E> pollFirstEntry() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public @Nullable Entry<E> pollLastEntry() {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public SortedMultiset<E> headMultiset(@ParametricNullness E upperBound, BoundType boundType) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

      public void testRemoveIf_unsupportedEmptyCollection() {
        try {
          assertFalse(
              "removeIf(Predicate) should return false or throw UnsupportedOperationException",
              collection.removeIf(
                  x -> {
                    throw new AssertionError("predicate should never be called");
                  }));
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

            void testSetResponseNull() {
                testRequest.setResponse(null);
                assertNull(testRequest.getResponse());
            }
    
            @Test
            @DisplayName("setResponse should throw exception for incompatible response")
            void testSetResponseIncompatible() {
                CommonServerMessageBlockResponse incompatibleResponse = mock(CommonServerMessageBlockResponse.class);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

                default:
                    si = arr.length;
                }
    
                si++;
            } while (si < arr.length);
    
            if (binding == null || binding.endpoint == null) {
                throw new DcerpcException("Invalid binding URL: " + str);
            }
    
            return binding;
        }
    
        /**
         * The DCERPC binding configuration for this handle
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/suggest/converter/ReadingConverterTest.java

                if (throwExceptionOnInit) {
                    throw new IOException("Init failed");
                }
            }
    
            @Override
            public List<String> convert(String text, String field, String... langs) throws IOException {
                if (throwExceptionOnConvert) {
                    throw new IOException("Convert failed");
                }
                return Collections.emptyList();
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/CertificatePinning.kt

        val request =
          Request
            .Builder()
            .url("https://publicobject.com/robots.txt")
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          for (certificate in response.handshake!!.peerCertificates) {
            println(CertificatePinner.pin(certificate))
          }
        }
      }
    }
    
    fun main() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Uninterruptibles.java

          throws ExecutionException {
        try {
          return future.get();
        } catch (InterruptedException e) {
          // Should never be thrown in GWT but play it safe
          throw new IllegalStateException(e);
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/JobHelper.java

         * @param scheduledJob the scheduled job to register
         */
        public void register(final LaCron cron, final ScheduledJob scheduledJob) {
            if (scheduledJob == null) {
                throw new ScheduledJobException("No job.");
            }
    
            final String id = scheduledJob.getId();
            if (!Constants.T.equals(scheduledJob.getAvailable())) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top