Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 6,625 for throws (0.15 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testAsAsyncCallable_exception() throws Exception {
        final Exception expected = new IllegalArgumentException();
        Callable<String> callable =
            new Callable<String>() {
              @Override
              public String call() throws Exception {
                throw expected;
              }
            };
    
        AsyncCallable<String> asyncCallable =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testAsAsyncCallable_exception() throws Exception {
        final Exception expected = new IllegalArgumentException();
        Callable<String> callable =
            new Callable<String>() {
              @Override
              public String call() throws Exception {
                throw expected;
              }
            };
    
        AsyncCallable<String> asyncCallable =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 13 14:28:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/StringDeduplicatingKryoBackedDecoder.java

            if (e.getMessage().equals("Buffer underflow.")) {
                throw (EOFException) new EOFException().initCause(e);
            }
            throw e;
        }
    
        @Override
        public byte readByte() throws EOFException {
            try {
                return input.readByte();
            } catch (KryoException e) {
                throw maybeEndOfStream(e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/worker/TestEventSerializer.java

            /**
             * Serializes the exception thrown by the test and also writes the exception type so that if there is a failure recreating the exception, we can at least
             * provide the user with some information about what type of exception was thrown.
             */
            private void writeThrowableWithType(Encoder encoder, DefaultTestFailure value, Throwable rawFailure) throws Exception {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/StringDeduplicatingDecoder.java

            delegate.skipBytes(count);
        }
    
        @Override
        public <T> T decodeChunked(DecodeAction<Decoder, T> decodeAction) throws EOFException, Exception {
            throw new UnsupportedOperationException();
        }
    
        @Override
        public void skipChunked() throws EOFException, IOException {
            throw new UnsupportedOperationException();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 11:24:15 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ImplementationSnapshotSerializer.java

        }
    
        @Override
        public ImplementationSnapshot read(Decoder decoder) throws Exception {
            Impl serializer = Impl.values()[decoder.readSmallInt()];
            return serializer.read(decoder);
        }
    
        @Override
        public void write(Encoder encoder, ImplementationSnapshot implementationSnapshot) throws Exception {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 12:33:49 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/LittleEndianDataInputStream.java

      public void readFully(byte[] b, int off, int len) throws IOException {
        ByteStreams.readFully(this, b, off, len);
      }
    
      @Override
      public int skipBytes(int n) throws IOException {
        return (int) in.skip(n);
      }
    
      @CanIgnoreReturnValue // to skip a byte
      @Override
      public int readUnsignedByte() throws IOException {
        int b1 = in.read();
        if (0 > b1) {
          throw new EOFException();
        }
    
        return b1;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

            return input;
          } catch (InterruptedException e) {
            throw new AssertionError();
          }
        }
    
        @Override
        public void sleepThenThrowException() throws SampleException {
          try {
            MILLISECONDS.sleep(delayMillis);
          } catch (InterruptedException e) {
          }
          throw new SampleException();
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      }
    
      public void testFrom_failedInput() throws Exception {
        assertFinallyFailsWithException(failedClosingFuture());
      }
    
      public void testFrom_cancelledInput() throws Exception {
        assertBecomesCanceled(ClosingFuture.from(immediateCancelledFuture()));
      }
    
      public void testEventuallyClosing() throws Exception {
        ClosingFuture<String> closingFuture =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 12:37:15 UTC 2024
    - 75.3K bytes
    - Viewed (0)
Back to top