Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Exceptions (0.17 sec)

  1. MoreFiles.java

    options); L612: exceptions = deleteDirectoryContentsInsecure(stream); L613: } L614: } catch (IOException e) { L615: if (exceptions == null) { L616: throw e; L617: } else { L618: exceptions.add(e); L619: } L620: } L621: L622: if (exceptions != null) { L623: throwDeleteFailed(path, exceptions); L624: } L625: } L626: L627: /** L628: * Secure recursive delete using {@code SecureDirectoryStream}. Returns a collection of exceptions L629: * that occurred...
    github.com/google/guava/android/guava/src/com/g...
    Thu Oct 31 16:07:00 UTC 2024
      35K bytes
  2. MoreFiles.java

    options); L600: exceptions = deleteDirectoryContentsInsecure(stream); L601: } L602: } catch (IOException e) { L603: if (exceptions == null) { L604: throw e; L605: } else { L606: exceptions.add(e); L607: } L608: } L609: L610: if (exceptions != null) { L611: throwDeleteFailed(path, exceptions); L612: } L613: } L614: L615: /** L616: * Secure recursive delete using {@code SecureDirectoryStream}. Returns a collection of exceptions L617: * that occurred...
    github.com/google/guava/guava/src/com/google/co...
    Thu Oct 31 16:07:00 UTC 2024
      34.5K bytes
  3. MapReplaceEntryTester.java

    tolerated) { L133: // the operation would be a no-op, so exceptions are allowed but not required L134: } L135: expectUnchanged(); L136: } L137: L138: @MapFeature.Require(absent = SUPPORTS_PUT) L139: public void testReplaceEntry_unsupportedAbsentKey() { L140: try { L141: getMap().replace(k3(), v3(), v4()); L142: } catch (UnsupportedOperationException tolerated) { L143: // the operation would be a no-op, so exceptions are allowed but not required L144: } L145: expectUnchanged();...
    github.com/google/guava/android/guava-testlib/s...
    Thu Oct 31 14:51:04 UTC 2024
      5.4K bytes
  4. CharSourceTest.java

    out : BROKEN_SINKS) { L300: int suppressed = runSuppressionFailureTest(in, out); L301: assertThat(suppressed).isAtMost(1); L302: } L303: } L304: } L305: L306: /** L307: * @return the number of exceptions that were suppressed on the expected thrown exception L308: */ L309: private static int runSuppressionFailureTest(CharSource in, CharSink out) { L310: try { L311: in.copyTo(out); L312: fail(); L313: } catch (IOException expected) { L314: return ex...
    github.com/google/guava/android/guava-tests/tes...
    Thu Oct 31 14:20:11 UTC 2024
      11.4K bytes
  5. Streams.java

    immediately. L165: Exception exception = null; L166: for (BaseStream<?, ?> stream : toClose) { L167: try { L168: stream.close(); L169: } catch (Exception e) { // sneaky checked exception L170: if (exception == null) { L171: exception = e; L172: } else { L173: exception.addSuppressed(e); L174: } L175: } L176: } L177: if (exception != null) { L178: // Normally this is a RuntimeException that doesn't need sneakyThrow. L179:...
    github.com/google/guava/android/guava/src/com/g...
    Thu Oct 31 14:20:11 UTC 2024
      37.4K bytes
  6. Streams.java

    immediately. L158: Exception exception = null; L159: for (BaseStream<?, ?> stream : toClose) { L160: try { L161: stream.close(); L162: } catch (Exception e) { // sneaky checked exception L163: if (exception == null) { L164: exception = e; L165: } else { L166: exception.addSuppressed(e); L167: } L168: } L169: } L170: if (exception != null) { L171: // Normally this is a RuntimeException that doesn't need sneakyThrow. L172:...
    github.com/google/guava/guava/src/com/google/co...
    Thu Oct 31 14:20:11 UTC 2024
      36.8K bytes
  7. DnsOverHttps.kt

    processResponse( L147: response: Response, L148: hostname: String, L149: results: MutableList<InetAddress>, L150: failures: MutableList<Exception>, L151: ) { L152: try { L153: val addresses = readResponse(hostname, response) L154: synchronized(results) { L155: results.addAll(addresses) L156: } L157: } catch (e: Exception) { L158: synchronized(failures) { L159: failures.add(e) L160: } L161: } L162: } L163: L164: @Throws(UnknownHostException::class)...
    github.com/square/okhttp/okhttp-dnsoverhttps/sr...
    Thu Oct 31 09:27:31 UTC 2024
      9.8K bytes
  8. MapRemoveEntryTester.java

    ALLOWS_NULL_KEY_QUERIES) L70: public void testRemove_nullKeyQueriesUnsupported() { L71: try { L72: assertFalse(getMap().remove(null, v3())); L73: } catch (NullPointerException tolerated) { L74: // since the operation would be a no-op, the exception is not required L75: } L76: expectUnchanged(); L77: } L78: L79: @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_VALUE_QUERIES) L80: public void testRemove_nullValueQueriesUnsupported() { L81: try { L82: assertF...
    github.com/google/guava/android/guava-testlib/s...
    Thu Oct 31 14:51:04 UTC 2024
      3.9K bytes
  9. MoreFilesTest.java

    static Path root() { L68: return FS.getRootDirectories().iterator().next(); L69: } L70: L71: private Path tempDir; L72: L73: @Override L74: protected void setUp() throws Exception { L75: tempDir = Files.createTempDirectory("MoreFilesTest"); L76: } L77: L78: @Override L79: protected void tearDown() throws Exception { L80: if (tempDir != null) { L81: // delete tempDir and its contents L82: Files.walkFileTree( L83: tempDir, L84: new SimpleFileVisitor<Path>()...
    github.com/google/guava/android/guava-tests/tes...
    Thu Oct 31 16:07:00 UTC 2024
      26.5K bytes
  10. Optional.java

    throws {@link L193: * java.util.NoSuchElementException NoSuchElementException}. L194: * L195: * @throws IllegalStateException if the instance is absent ({@link #isPresent} returns {@code L196: * false}); depending on this <i>specific</i> exception type (over the more general {@link L197: * RuntimeException}) is discouraged L198: */ L199: public abstract T get(); L200: L201: /** L202: * Returns the contained instance if it is present; {@code defaultValue} otherwise. If no default...
    github.com/google/guava/android/guava/src/com/g...
    Thu Oct 31 14:20:11 UTC 2024
      15.4K bytes
Back to top