Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 361 - 370 of 3,747 for throw (0.02 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

      }
    
      static final class BrokenChannel extends AbstractInterruptibleChannel {
        @Override
        protected void implCloseChannel() {
          throw new RuntimeException("I bet you didn't think Thread.interrupt could throw");
        }
    
        void doBegin() {
          super.begin();
        }
      }
    
      /**
       * Because Thread.interrupt() can invoke arbitrary code, it can be slow (e.g. perform IO). To
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

      }
    
      static final class BrokenChannel extends AbstractInterruptibleChannel {
        @Override
        protected void implCloseChannel() {
          throw new RuntimeException("I bet you didn't think Thread.interrupt could throw");
        }
    
        void doBegin() {
          super.begin();
        }
      }
    
      /**
       * Because Thread.interrupt() can invoke arbitrary code, it can be slow (e.g. perform IO). To
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  3. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/UnixDomainSocketFactory.java

        } catch (IOException e) {
          result.close();
          throw e;
        }
        return result;
      }
    
      @Override public Socket createSocket(
          String host, int port, InetAddress localHost, int localPort) throws IOException {
        return createSocket(host, port);
      }
    
      @Override public Socket createSocket(InetAddress host, int port) throws IOException {
        Socket result = createSocket();
    
        try {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Dec 03 21:33:52 GMT 2023
    - 2.1K bytes
    - Click Count (0)
  4. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/precommit/LicenseHeadersTask.java

            } catch (IOException | RatException exception) {
                throw new GradleException("Cannot generate license header report for " + getPath(), exception);
            }
        }
    
        private ClaimStatistic toXmlReportFile(ReportConfiguration config, Writer writer) throws RatException, IOException {
            ClaimStatistic stats = new ClaimStatistic();
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 09 18:53:35 GMT 2021
    - 10.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/jar/JarInputStreamUtil.java

                throw new IORuntimeException(e);
            }
        }
    
        /**
         * Method that wraps exception handling for {@link JarInputStream#getNextJarEntry()}.
         *
         * @param is the input stream (must not be {@literal null})
         * @return {@link JarEntry}
         * @throws IORuntimeException if an {@link IOException} occurs
         * @see JarInputStream#getNextJarEntry()
         */
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

            }
            throw new MethodNotFoundRuntimeException(beanClass, methodName, args);
        }
    
        @Override
        public MethodDesc[] getMethodDescs(final String methodName) {
            assertArgumentNotEmpty("methodName", methodName);
    
            final MethodDesc[] methodDescs = methodDescsCache.get(methodName);
            if (methodDescs == null) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 25.8K bytes
    - Click Count (1)
  7. src/main/java/org/codelibs/core/jar/JarFileUtil.java

            return FileUtil.getCanonicalPath(jarFile);
        }
    
        /**
         * Closes the JAR file.
         * <p>
         * If {@link JarFile#close()} throws an exception, an error message is logged. The exception is not re-thrown.
         * </p>
         *
         * @param jarFile the JAR file (must not be {@literal null})
         */
        public static void close(final JarFile jarFile) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  8. benchmarks/src/main/java/org/elasticsearch/benchmark/search/aggregations/bucket/terms/LongKeyedBucketOrdsBenchmark.java

                for (long i = 0; i < LIMIT; i++) {
                    ords.add(0, i % DISTINCT_VALUES);
                }
                if (ords.size() != DISTINCT_VALUES) {
                    throw new IllegalArgumentException("Expected [" + DISTINCT_VALUES + "] but found [" + ords.size() + "]");
                }
                bh.consume(ords);
            }
        }
    
        /**
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Feb 19 20:59:23 GMT 2021
    - 8.4K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/escape/UnicodeEscaper.java

            }
            throw new IllegalArgumentException(
                "Expected low surrogate but got char '"
                    + c2
                    + "' with value "
                    + (int) c2
                    + " at index "
                    + index
                    + " in '"
                    + seq
                    + "'");
          } else {
            throw new IllegalArgumentException(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 24 04:06:11 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

          Runnable errorTask =
              () -> {
                throw new MyError();
              };
          Runnable barrierTask =
              () -> {
                try {
                  barrier.await();
                } catch (Exception e) {
                  throw new RuntimeException(e);
                }
              };
          executor.execute(errorTask);
          service.execute(barrierTask); // submit directly to the service
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 10.5K bytes
    - Click Count (0)
Back to Top