Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for initCauses (0.2 sec)

  1. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/exceptions/DefaultMultiCauseException.java

        public List<? extends Throwable> getCauses() {
            return causes;
        }
    
        @Override
        public synchronized Throwable initCause(Throwable throwable) {
            causes.clear();
            causes.add(throwable);
            return null;
        }
    
        public void initCauses(Iterable<? extends Throwable> causes) {
            this.causes.clear();
            for (Throwable cause : causes) {
                this.causes.add(cause);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/tasks/TaskStateInternal.java

                CollectionUtils.addAll(causes, failure.getCauses());
                taskExecutionException.initCauses(causes);
            } else {
                List<Throwable> causes = new ArrayList<>();
                causes.add(this.failure);
                causes.addAll(failure.getCauses());
                failure.initCauses(causes);
                this.failure = failure;
            }
        }
    
        public boolean getExecuting() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 29 19:57:41 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/internal/resolve/ModuleVersionResolveException.java

            this(selector, format("Could not resolve %s.", selector));
            initCause(cause);
        }
    
        public ModuleVersionResolveException(ComponentSelector selector, Iterable<? extends Throwable> causes) {
            this(selector, format("Could not resolve %s.", selector));
            initCauses(causes);
        }
    
        public ModuleVersionResolveException(ModuleVersionSelector selector, Factory<String> message) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 19:29:09 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/execution/MultipleBuildFailures.java

            super("Build completed with " + causes.size() + " failures.", causes);
        }
    
        public void replaceCauses(List<? extends Throwable> causes) {
            super.initCauses(causes);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 16 07:51:10 UTC 2018
    - 1.1K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/initialization/exception/DefaultExceptionAnalyser.java

                    } else {
                        additionalFailures.add(cause);
                    }
                }
                if (!additionalFailures.isEmpty()) {
                    projectConfigurationException.initCauses(additionalFailures);
                    failures.add(transform(projectConfigurationException));
                }
            } else if (exception instanceof ServiceCreationException) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 13:10:04 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/api/internal/project/ProjectStateInternal.java

            } else {
                List<Throwable> causes = new ArrayList<Throwable>(this.failure.getCauses());
                CollectionUtils.addAll(causes, failure.getCauses());
                this.failure.initCauses(causes);
            }
        }
    
        public boolean hasFailure() {
            return failure != null;
        }
    
        @Override
        public Throwable getFailure() {
            return failure;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:52:05 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/exceptions/DefaultMultiCauseExceptionTest.groovy

            failure.initCause(cause1)
    
            expect:
            failure.cause == cause1
            failure.causes == [cause1]
        }
    
        def canUseInitCausesToProvideMultipleCause() {
            def cause1 = new RuntimeException()
            def cause2 = new RuntimeException()
            def failure = new TestMultiCauseException('message', [])
            failure.initCauses([cause1, cause2])
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/exception/InstantiationRuntimeException.java

            this.targetClass = targetClass;
        }
    
        @Override
        public synchronized InstantiationRuntimeException initCause(final Throwable cause) {
            return (InstantiationRuntimeException) super.initCause(cause);
        }
    
        /**
         * ターゲットクラスを返します。
         *
         * @return ターゲットクラス
         */
        public Class<?> getTargetClass() {
            return targetClass;
        }
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ExecutionError.java

       * and https://github.com/jspecify/jspecify/issues/490.
       *
       * (That would also have ensured that its cause was always an Error, rather than possibly another
       * kind of Throwable that was later passed to initCause. Then we could have declared the override
       * `public final Error getCause()`.)
       */
    
      /**
       * Creates a new instance with {@code null} as its detail message and no cause.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 17:52:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/ExecutionError.java

       * and https://github.com/jspecify/jspecify/issues/490.
       *
       * (That would also have ensured that its cause was always an Error, rather than possibly another
       * kind of Throwable that was later passed to initCause. Then we could have declared the override
       * `public final Error getCause()`.)
       */
    
      /**
       * Creates a new instance with {@code null} as its detail message and no cause.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 17:52:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top