- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,652 for throwIf (0.11 sec)
-
android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java
public void exceptionThrowingMethod(Object arg) throws Exception { throw new IntentionalException(); } /** Local exception subclass to check variety of exception thrown. */ class IntentionalException extends Exception { private static final long serialVersionUID = -2500191180248181379L; } @Subscribe public void errorThrowingMethod(Object arg) { throw new JudgmentError(); } @Subscribe
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 4.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
* * @throws ExecutionException if {@code closingFuture} is a failed step * @throws CancellationException if the {@code closingFuture}'s future was cancelled * @throws IllegalArgumentException if {@code closingFuture} is not one of the futures passed to * {@link #whenAllComplete(Iterable)} or {@link #whenAllComplete(Iterable)}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 08 19:36:35 UTC 2024 - 98.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java
* available. * * @throws InterruptedException if the current thread was interrupted before or during the call * (optional but recommended). * @throws CancellationException {@inheritDoc} */ @CanIgnoreReturnValue @Override public V get(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException, ExecutionException { return sync.get(unit.toNanos(timeout)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 13.6K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AbstractFuture.java
builder.append("UNKNOWN, cause=[").append(e.getClass()).append(" thrown from get()]"); } } private enum State { PENDING { @Override boolean isDone() { return false; } @Override void maybeThrowOnGet(@Nullable Throwable cause) throws ExecutionException { throw new IllegalStateException("Cannot get() on a pending future."); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jan 22 19:37:41 UTC 2024 - 12.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
final int throwAfterCount; final RuntimeException thrown; int count; ThrowingRunnable(int throwAfterCount, RuntimeException thrown) { this.throwAfterCount = throwAfterCount; this.thrown = thrown; } @Override public void run() { if (++count >= throwAfterCount) { throw thrown; } } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 28.1K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/UnicodeEscaper.java
* performance for unescaped strings (as measured by {@code CharEscapersBenchmark}). * * @param string the literal string to be escaped * @return the escaped form of {@code string} * @throws NullPointerException if {@code string} is null * @throws IllegalArgumentException if invalid surrogate characters are encountered */ @Override public String escape(String string) { checkNotNull(string); int end = string.length();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jan 18 20:55:09 UTC 2022 - 13.2K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/TearDownStackTest.java
try { stack.runTearDown(); fail("runTearDown should have thrown an exception"); } catch (ClusterException expected) { assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("two"); } catch (RuntimeException e) { throw new RuntimeException( "A ClusterException should have been thrown, rather than a " + e.getClass().getName(), e); } assertEquals(true, tearDownOne.ran);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 10:19:29 UTC 2024 - 4.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbSession.java
* occurs an <tt>SmbException</tt> will be thrown. If the credentials are * valid, the method will return without throwing an exception. See the * last <a href="../../../faq.html">FAQ</a> question. * <p> * See also the <tt>jcifs.smb1.smb1.client.logonShare</tt> property. */ public static void logon( UniAddress dc, NtlmPasswordAuthentication auth ) throws SmbException {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 18.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/SloppyTearDown.java
@Override public final void tearDown() { try { sloppyTearDown(); } catch (Throwable t) { logger.log(Level.INFO, "exception thrown during tearDown: " + t.getMessage(), t); } } public abstract void sloppyTearDown() throws Exception;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 19:22:18 UTC 2023 - 1.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/transport/Transport.java
protected abstract void makeKey( Request request ) throws IOException; protected abstract Request peekKey() throws IOException; protected abstract void doSend( Request request ) throws IOException; protected abstract void doRecv( Response response ) throws IOException; protected abstract void doSkip() throws IOException; public synchronized void sendrecv( Request request,
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 9K bytes - Viewed (0)