- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 3,017 for throw (0.27 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/EmptyIteratorTest.java
throw new RuntimeException(e); } }, "close() should not throw any exception"); } @Test @DisplayName("remove should not throw any exception") void testRemoveDoesNotThrowException() { // When & Then assertDoesNotThrow(() -> { emptyIterator.remove(); }, "remove() should not throw any exception"); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12K bytes - Click Count (0) -
guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java
public T next() { try { return iterator.next(); } catch (NoSuchElementException e) { nextThrewException = true; throw e; } } @Override public void remove() { if (nextThrewException) { throw new IllegalStateException(); } iterator.remove(); } } public void testCanCatchJdkBug6529795InTargetIterator() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 10.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenParser.java
return parseArgs("atFile", args); } catch (ParseException e) { throw new IllegalArgumentException( "Failed to parse arguments from file (" + atFile + "): " + e.getMessage(), e.getCause()); } catch (IOException e) { throw new IllegalStateException("Error reading config file: " + atFile, e); } }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Oct 14 12:35:44 GMT 2025 - 4.4K bytes - Click Count (0) -
src/main/java/jcifs/pac/kerberos/KerberosToken.java
* @param keys array of Kerberos keys for decryption * @throws PACDecodingException if token decoding fails */ public KerberosToken(byte[] token, KerberosKey[] keys) throws PACDecodingException { if (token.length <= 0) { throw new PACDecodingException("Empty kerberos token"); } byte[] content; try (ASN1InputStream stream = new ASN1InputStream(token)) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/ReflectionFreeAssertThrows.java
return caught; } throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t); } if (userPassedSupplier) { throw new AssertionError( "expected to throw " + expectedThrowable.getSimpleName() + " but returned result: " + result); } else {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 7K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java
public boolean addAll(Collection<? extends E> elementsToAdd) { throw up(); } @Override public boolean removeAll(Collection<?> elementsToRemove) { throw up(); } @Override public boolean retainAll(Collection<?> elementsToRetain) { throw up(); } @Override public void clear() { throw up(); } private static UnsupportedOperationException up() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 21:06:42 GMT 2026 - 3.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/MoreCollectors.java
throw exceptionSupplier.get(); } else { throw new NoSuchElementException(); } } else if (extras.isEmpty()) { return uncheckedCastNullableTToT(element); } else { throw multiples(false); } } } private MoreCollectors() {}
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 18 16:22:33 GMT 2026 - 6.1K bytes - Click Count (0) -
guava/src/com/google/common/base/Throwables.java
* throwIfUnchecked(failure); * throw new AssertionError(failure); * } * </pre> * * @since 20.0 */ public static void throwIfUnchecked(Throwable throwable) { checkNotNull(throwable); if (throwable instanceof RuntimeException) { throw (RuntimeException) throwable; } if (throwable instanceof Error) { throw (Error) throwable; } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
* @throws SmbException if an I/O error occurs */ public void close() throws SmbException { file.close(); } @Override public final boolean readBoolean() throws SmbException { if (read(tmp, 0, 1) < 0) { throw new SmbException("EOF"); } return tmp[0] != (byte) 0x00; } @Override public final byte readByte() throws SmbException {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 14.1K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt
) : SSLSession { override fun getApplicationBufferSize(): Int = throw UnsupportedOperationException() override fun getCipherSuite(): String = throw UnsupportedOperationException() override fun getCreationTime(): Long = throw UnsupportedOperationException() override fun getId(): ByteArray = throw UnsupportedOperationException() override fun getLastAccessedTime(): Long = throw UnsupportedOperationException()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 3.2K bytes - Click Count (0)