Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 76 for initCauses (0.39 sec)

  1. android/guava/src/com/google/common/net/HostSpecifier.java

          // fromValid(), we implement this method in terms of that one rather
          // than the reverse.
    
          ParseException parseException = new ParseException("Invalid host specifier: " + specifier, 0);
          parseException.initCause(e);
          throw parseException;
        }
      }
    
      /**
       * Determines whether {@code specifier} represents a valid {@link HostSpecifier} as described in
       * the documentation for {@link #fromValid(String)}.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 05 09:18:40 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/net/HostSpecifier.java

          // fromValid(), we implement this method in terms of that one rather
          // than the reverse.
    
          ParseException parseException = new ParseException("Invalid host specifier: " + specifier, 0);
          parseException.initCause(e);
          throw parseException;
        }
      }
    
      /**
       * Determines whether {@code specifier} represents a valid {@link HostSpecifier} as described in
       * the documentation for {@link #fromValid(String)}.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 05 09:18:40 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. 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)
  4. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/connection/ParameterAwareBuildControllerAdapterTest.groovy

        def "unpacks unsupported model exception"() {
            def failure = new RuntimeException()
    
            given:
            _ * delegate.getModel(null, _, null) >> { throw new InternalUnsupportedModelException().initCause(failure) }
    
            when:
            controller.getModel(String)
    
            then:
            UnknownModelException e = thrown()
            e.message == /No model of type 'String' is available in this build./
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 08:15:25 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  5. 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)
  6. 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: Thu Feb 22 17:15:24 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

            .withTearDown(tearDown)
            .createTestSuite();
      }
    
      private static LinkageError newLinkageError(Throwable cause) {
        LinkageError error = new LinkageError(cause.toString());
        error.initCause(cause);
        return error;
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

          X instance = newFromConstructor(constructor, cause);
          if (instance != null) {
            if (instance.getCause() == null) {
              instance.initCause(cause);
            }
            return instance;
          }
        }
        throw new IllegalArgumentException(
            "No appropriate constructor for exception of type "
                + exceptionClass
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. maven-model/src/main/java/org/apache/maven/model/InputLocation.java

                }
    
                return copy;
            } catch (Exception ex) {
                throw (RuntimeException)
                        new UnsupportedOperationException(getClass().getName() + " does not support clone()").initCause(ex);
            }
        } // -- InputLocation clone()
    
        /**
         * Get the one-based column number. The value will be
         * non-positive if unknown.
         *
         * @return int
         */
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Oct 19 07:06:15 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  10. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

        }
    
        val failure = failures[0]
    
        if (failure is UnknownHostException) {
          throw failure
        }
    
        val unknownHostException = UnknownHostException(hostname)
        unknownHostException.initCause(failure)
    
        for (i in 1 until failures.size) {
          unknownHostException.addSuppressed(failures[i])
        }
    
        throw unknownHostException
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Mar 22 07:09:21 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top