Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for addSuppressed (0.1 sec)

  1. guava/src/com/google/common/util/concurrent/ServiceManager.java

                        + Multimaps.filterKeys(servicesByState, not(equalTo(RUNNING))));
            for (Service service : servicesByState.get(State.FAILED)) {
              exception.addSuppressed(new FailedService(service));
            }
            throw exception;
          }
        }
      }
    
      /**
       * A {@link Service} that wraps another service and times how long it takes for it to start and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Streams.java

          try {
            stream.close();
          } catch (Exception e) { // sneaky checked exception
            if (exception == null) {
              exception = e;
            } else {
              exception.addSuppressed(e);
            }
          }
        }
        if (exception != null) {
          // Normally this is a RuntimeException that doesn't need sneakyThrow.
          // But theoretically we could see sneaky checked exception
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                    }
                }
                if (causes != null) {
                    InvokerException exception = new InvokerException("Unable to close context");
                    causes.forEach(exception::addSuppressed);
                    throw exception;
                }
            }
        }
    
        protected final ProtoLookup protoLookup;
    
        public LookupInvoker(ProtoLookup protoLookup) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/MoreFiles.java

                path.toString(),
                null,
                "failed to delete one or more files; see suppressed exceptions for details");
        for (IOException e : exceptions) {
          deleteFailed.addSuppressed(e);
        }
        throw deleteFailed;
      }
    
      @CheckForNull
      private static NoSuchFileException pathNotFound(Path path, Collection<IOException> exceptions) {
        if (exceptions.size() != 1) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/MoreFiles.java

                path.toString(),
                null,
                "failed to delete one or more files; see suppressed exceptions for details");
        for (IOException e : exceptions) {
          deleteFailed.addSuppressed(e);
        }
        throw deleteFailed;
      }
    
      @CheckForNull
      private static NoSuchFileException pathNotFound(Path path, Collection<IOException> exceptions) {
        if (exceptions.size() != 1) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Streams.java

          try {
            stream.close();
          } catch (Exception e) { // sneaky checked exception
            if (exception == null) {
              exception = e;
            } else {
              exception.addSuppressed(e);
            }
          }
        }
        if (exception != null) {
          // Normally this is a RuntimeException that doesn't need sneakyThrow.
          // But theoretically we could see sneaky checked exception
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTransportImpl.java

            catch ( IOException ioe ) {
                log.warn("send failed", ioe);
                try {
                    disconnect(true);
                }
                catch ( IOException ioe2 ) {
                    ioe.addSuppressed(ioe2);
                    log.error("disconnect failed", ioe2);
                }
                throw ioe;
            }
        }
    
    
        // must be synchronized with peekKey
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFile.java

                    }
                }
                catch ( Exception e2 ) {
                    log.debug("Failed to close after failure", e2);
                    e.addSuppressed(e2);
                }
                throw e;
            }
        }
    
    
        @Override
        public void createNewFile () throws SmbException {
            if ( this.fileLocator.isRootOrShare() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
Back to top