- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 1,790 for threw (0.02 sec)
-
guava-tests/test/com/google/common/collect/IteratorsTest.java
Iterator<String> iterator = asList("one", "two", "three", "four", "five").iterator(); IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterator)); assertThat(expected) .hasMessageThat() .isEqualTo("expected one element but was: <one, two, three, four, five>"); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multisets.java
public boolean add(@ParametricNullness E element) { throw new UnsupportedOperationException(); } @Override public int add(@ParametricNullness E element, int occurrences) { throw new UnsupportedOperationException(); } @Override public boolean addAll(Collection<? extends E> elementsToAdd) { throw new UnsupportedOperationException(); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 41.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 36.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
try { connect(); } catch( UnknownHostException uhe ) { throw new SmbException( "Failed to connect to server", uhe ); } catch( SmbException se ) { throw se; } catch( IOException ioe ) { throw new SmbException( "Failed to connect to server", ioe ); } } void doConnect() throws IOException {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Mon Mar 13 12:00:57 UTC 2023 - 107.9K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractService.java
if (actual == FAILED) { // Handle this specially so that we can include the failureCause, if there is one. throw new IllegalStateException( "Expected the service " + this + " to be " + expected + ", but the service has FAILED", failureCause()); } throw new IllegalStateException( "Expected the service " + this + " to be " + expected + ", but was " + actual); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 18:32:03 UTC 2023 - 20.7K bytes - Viewed (0) -
src/main/java/jcifs/util/Crypto.java
catch ( NoSuchAlgorithmException e ) { throw new CIFSUnsupportedCryptoException(e); } } /** * * @return MD5 digest */ public static MessageDigest getMD5 () { try { return MessageDigest.getInstance("MD5"); } catch ( NoSuchAlgorithmException e ) { throw new CIFSUnsupportedCryptoException(e); } }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Aug 17 17:34:29 UTC 2021 - 5.2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Closer.java
* types your try block can throw when calling an overload of this method so as to avoid losing * the original exception type. * * <p>This method always throws, and as such should be called as {@code throw closer.rethrow(e);} * to ensure the compiler knows that it will throw. * * @return this method does not return; it always throws
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 10.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/transport/Transport.java
thread = null; throw new TransportException( "Connection timeout" ); case 2: if (te != null) { /* doConnect throw Exception */ state = 4; /* error */ thread = null; throw te; }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java
Decodable out = getOutputData(); if ( out == null ) { throw new SmbException("Failed to decode output data"); } if ( !responseType.isAssignableFrom(out.getClass()) ) { throw new SmbException("Incompatible response data " + out.getClass()); } return (T) out; }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Aug 05 09:45:59 UTC 2018 - 7.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFile.java
if ( filter == 0 ) { throw new IllegalArgumentException("filter must not be 0"); } if ( !isDirectory() ) { throw new SmbException("Is not a directory"); } try ( SmbTreeHandleImpl th = ensureTreeConnected() ) { if ( !th.isSMB2() && !th.hasCapability(SmbConstants.CAP_NT_SMBS) ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu May 23 01:50:13 UTC 2024 - 82.3K bytes - Viewed (0)