Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for initCauses (0.16 sec)

  1. maven-core/src/test/java/org/apache/maven/exception/DefaultExceptionHandlerTest.java

                }
            };
            causeRef.set(cause2);
    
            Plugin plugin = new Plugin();
            Exception cause = new PluginContainerException(plugin, null, null, cause2);
            cause2.initCause(cause);
            PluginDescriptor pluginDescriptor = new PluginDescriptor();
            MojoDescriptor mojoDescriptor = new MojoDescriptor();
            mojoDescriptor.setPluginDescriptor(pluginDescriptor);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Jun 06 10:31:03 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/internal/buildevents/BuildFailureIntegrationTest.groovy

        }
    
        def "can handle circular exception"() {
            buildFile << """
                Exception selfReferencingException = new Exception("BOOM self")
                selfReferencingException.initCause(new Exception("BOOM cause", selfReferencingException))
                throw selfReferencingException
            """
    
            when:
            fails("help", "-s")
    
            then:
            failureCauseContains("BOOM self")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 13:10:04 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/PlaceholderAssertionError.java

            this.exceptionClassName = exceptionClassName;
            this.getMessageException = getMessageException;
            this.toString = toString;
            this.toStringRuntimeEx = toStringException;
            initCause(cause);
        }
    
        @Override
        public String getExceptionClassName() {
            return exceptionClassName;
        }
    
        @Override
        public String getMessage() {
            if (getMessageException != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/ClassLoaderObjectInputStream.java

            private final JavaVersion version;
            public UnsupportedClassVersionErrorWithJavaVersion(UnsupportedClassVersionError cause, JavaVersion version) {
                super(cause.getMessage());
                initCause(cause);
                this.version = version;
            }
    
            public JavaVersion getVersion() {
                return version;
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/exceptions/ContextAwareException.java

    import javax.annotation.Nullable;
    import java.util.ArrayList;
    import java.util.List;
    
    public class ContextAwareException extends GradleException {
    
        public ContextAwareException(Throwable t) {
            initCause(t);
        }
    
        /**
         * Returns the reportable causes for this failure.
         *
         * @return The causes. Never returns null, returns an empty list if this exception has no reportable causes.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 13:32:53 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/StringDeduplicatingKryoBackedDecoder.java

            }
        }
    
        private RuntimeException maybeEndOfStream(KryoException e) throws EOFException {
            if (e.getMessage().equals("Buffer underflow.")) {
                throw (EOFException) new EOFException().initCause(e);
            }
            throw e;
        }
    
        @Override
        public byte readByte() throws EOFException {
            try {
                return input.readByte();
            } catch (KryoException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          else if (t instanceof Exception) throw (Exception) t;
          else {
            AssertionFailedError afe = new AssertionFailedError(t.toString());
            afe.initCause(t);
            throw afe;
          }
        }
    
        if (Thread.interrupted()) throw new AssertionFailedError("interrupt status set in main thread");
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/DefaultBuildController.java

                }
            } catch (UnknownModelException e) {
                throw (InternalUnsupportedModelException) new InternalUnsupportedModelException().initCause(e);
            }
    
            return new ProviderBuildResult<>(model);
        }
    
        @Override
        public boolean getCanQueryProjectModelInParallel(Class<?> modelType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:56:14 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/KryoBackedDecoder.java

            }
        }
    
        private RuntimeException maybeEndOfStream(KryoException e) throws EOFException {
            if (e.getMessage().equals("Buffer underflow.")) {
                throw (EOFException) new EOFException().initCause(e);
            }
            throw e;
        }
    
        @Override
        public byte readByte() throws EOFException {
            try {
                return input.readByte();
            } catch (KryoException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

      private fun <E : IOException?> timeoutExit(cause: E): E {
        if (timeoutEarlyExit) return cause
        if (!timeout.exit()) return cause
    
        val e = InterruptedIOException("timeout")
        if (cause != null) e.initCause(cause)
        @Suppress("UNCHECKED_CAST") // E is either IOException or IOException?
        return e as E
      }
    
      /**
       * Stops applying the timeout before the call is entirely complete. This is used for WebSockets
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top