Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,683 for exceptions (0.29 sec)

  1. android/guava-testlib/src/com/google/common/testing/ClusterException.java

      final Collection<? extends Throwable> exceptions;
    
      private ClusterException(Collection<? extends Throwable> exceptions) {
        super(
            exceptions.size() + " exceptions were thrown. The first exception is listed as a cause.",
            exceptions.iterator().next());
        ArrayList<? extends Throwable> temp = new ArrayList<>(exceptions);
        this.exceptions = Collections.unmodifiableCollection(temp);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
  2. maven-compat/src/main/java/org/apache/maven/repository/MetadataResolutionResult.java

        // Exceptions
        // ------------------------------------------------------------------------
    
        public boolean hasExceptions() {
            return exceptions != null && !exceptions.isEmpty();
        }
    
        public List<Exception> getExceptions() {
            return exceptions == null ? Collections.emptyList() : Collections.unmodifiableList(exceptions);
        }
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/testing/ClusterException.java

      final Collection<? extends Throwable> exceptions;
    
      private ClusterException(Collection<? extends Throwable> exceptions) {
        super(
            exceptions.size() + " exceptions were thrown. The first exception is listed as a cause.",
            exceptions.iterator().next());
        ArrayList<? extends Throwable> temp = new ArrayList<>(exceptions);
        this.exceptions = Collections.unmodifiableCollection(temp);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/Closer.java

     *       will be thrown.
     *   <li>If no exceptions or errors were thrown in the try block, the <i>first</i> exception thrown
     *       by an attempt to close a resource will be thrown.
     *   <li>Any exception caught when attempting to close a resource that is <i>not</i> thrown (because
     *       another exception is already being thrown) is <i>suppressed</i>.
     * </ul>
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/project/DefaultDependencyResolutionResult.java

        }
    
        public List<Exception> getCollectionErrors() {
            return collectionErrors;
        }
    
        public void setCollectionErrors(List<Exception> exceptions) {
            if (exceptions != null) {
                this.collectionErrors = exceptions;
            } else {
                this.collectionErrors = new ArrayList<>();
            }
        }
    
        public List<Exception> getResolutionErrors(Dependency dependency) {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolverResult.java

         *
         * @param exceptions the exceptions that occurred while building the dependency graph
         * @param root the root node of the dependency graph
         * @param count estimated number of dependencies
         */
        DefaultDependencyResolverResult(List<Exception> exceptions, Node root, int count) {
            this.exceptions = exceptions;
            this.root = root;
            nodes = new ArrayList<>(count);
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/TearDownStack.java

              exceptions.add(t);
            }
          }
        }
        if (!suppressThrows && (exceptions.size() > 0)) {
          throw ClusterException.create(exceptions);
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultDependencyResolverResult.java

         *
         * @param exceptions the exceptions that occurred while building the dependency graph
         * @param root the root node of the dependency graph
         * @param count estimated number of dependencies
         */
        DefaultDependencyResolverResult(List<Exception> exceptions, Node root, int count) {
            this.exceptions = exceptions;
            this.root = root;
            nodes = new ArrayList<>(count);
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceEntryTester.java

          // the operation would be a no-op, so exceptions are allowed but not required
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testReplaceEntry_unsupportedAbsentKey() {
        try {
          getMap().replace(k3(), v3(), v4());
        } catch (UnsupportedOperationException tolerated) {
          // the operation would be a no-op, so exceptions are allowed but not required
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LoadingCache.java

       * <p><b>Warning:</b> this method silently converts checked exceptions to unchecked exceptions,
       * and should not be used with cache loaders which throw checked exceptions. In such cases use
       * {@link #get} instead.
       *
       * @throws UncheckedExecutionException if an exception was thrown while loading the value. (As
       *     explained in the last paragraph above, this should be an unchecked exception only.)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 8.3K bytes
    - Viewed (0)
Back to top