- Sort Score
- Result 10 results
- Languages All
Results 721 - 730 of 1,628 for rethrow (0.06 sec)
-
okhttp/src/test/java/okhttp3/internal/platform/Jdk9PlatformTest.kt
platform.assumeJdk9() val applicationProtocolUnsupported = object : DelegatingSSLSocket(null) { override fun getApplicationProtocol(): String { throw UnsupportedOperationException("Mock exception") } } assertThat(Jdk9Platform().getSelectedProtocol(applicationProtocolUnsupported)).isNull() }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.1K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/AccessHeaders.java
.addHeader("Accept", "application/vnd.github.v3+json") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); System.out.println("Server: " + response.header("Server")); System.out.println("Date: " + response.header("Date"));
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun May 22 01:29:42 UTC 2016 - 1.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/Platform.java
ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())); return (T) requireNonNull(in.readObject()); } catch (IOException | ClassNotFoundException e) { throw new RuntimeException(e); } } private Platform() {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Aug 23 12:13:11 UTC 2023 - 1.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/net/JarURLConnectionUtil.java
public static JarFile getJarFile(final JarURLConnection conn) { assertArgumentNotNull("conn", conn); try { return conn.getJarFile(); } catch (final IOException e) { throw new IORuntimeException(e); } }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.5K bytes - Viewed (0) -
src/main/java/jcifs/netbios/SessionRetargetResponsePacket.java
} @Override int readTrailerWireFormat ( InputStream in, byte[] buffer, int bufferIndex ) throws IOException { if ( in.read(buffer, bufferIndex, this.length) != this.length ) { throw new IOException("unexpected EOF reading netbios retarget session response"); } int addr = readInt4(buffer, bufferIndex); bufferIndex += 4; new NbtAddress(null, addr, false, NbtAddress.B_NODE);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 1.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/SuppliersTest.java
@Override public String toString() { return "CountingSupplier"; } } static class ThrowingSupplier implements Supplier<Integer> { @Override public Integer get() { throw new NullPointerException(); } } static class SerializableCountingSupplier extends CountingSupplier implements Serializable { private static final long serialVersionUID = 0L; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/SuppliersTest.java
@Override public String toString() { return "CountingSupplier"; } } static class ThrowingSupplier implements Supplier<Integer> { @Override public Integer get() { throw new NullPointerException(); } } static class SerializableCountingSupplier extends CountingSupplier implements Serializable { private static final long serialVersionUID = 0L; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 17.9K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3.9K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 4.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/UrlEscaperTesting.java
*/ static void assertBasicUrlEscaperExceptPercent(UnicodeEscaper e) { // URL escapers should throw null pointer exceptions for null input try { e.escape((String) null); fail("Escaping null string should throw exception"); } catch (NullPointerException x) { // pass } // All URL escapers should leave 0-9, A-Z, a-z unescaped
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 17:53:22 UTC 2024 - 3.6K bytes - Viewed (0)