Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 2,652 for throw (0.04 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/CacheResponse.java

      private final OkHttpClient client;
    
      public CacheResponse(File cacheDirectory) throws Exception {
        int cacheSize = 10 * 1024 * 1024; // 10 MiB
        Cache cache = new Cache(cacheDirectory, cacheSize);
    
        client = new OkHttpClient.Builder()
            .cache(cache)
            .build();
      }
    
      public void run() throws Exception {
        Request request = new Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 2.4K bytes
    - Viewed (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/model/ClassDoc.groovy

            def table = getSection(title).table[0]
            if (!table) {
                throw new RuntimeException("Section '$title' does not contain a <table> element.")
            }
            if (!table.thead[0]) {
                throw new RuntimeException("Table '$title' does not contain a <thead> element.")
            }
            if (!table.thead[0].tr[0]) {
                throw new RuntimeException("Table '$title' does not contain a <thead>/<tr> element.")
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6.2K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/JavassistExtensions.kt

            accept(object : MemberValueVisitorAdapter() {
                override fun visitIntegerMemberValue(node: IntegerMemberValue) {
                    value = node.value
                }
            })
            if (value == null) throw annotationMemberValueNotFound(typeOf<Int>())
            return value!!
        }
    
    
    internal
    val MemberValue.stringValue: String
        get() {
            var value: String? = null
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.6K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/LhaExtractor.java

                            }
                        }
                    }
                }
            } catch (final MaxLengthExceededException e) {
                throw e;
            } catch (final Exception e) {
                throw new ExtractException("Could not extract a content.", e);
            } finally {
                if (lhaFile != null) {
                    try {
                        lhaFile.close();
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Multisets.java

        public boolean add(@ParametricNullness E element) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public int add(@ParametricNullness E element, int occurrences) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public boolean addAll(Collection<? extends E> elementsToAdd) {
          throw new UnsupportedOperationException();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/TestThread.java

      /**
       * Sends the given method call to this thread.
       *
       * @throws TimeoutException if this thread does not accept the request within a reasonable amount
       *     of time
       */
      private void sendRequest(String methodName, Object... arguments) throws Exception {
        if (!requestQueue.offer(new Request(methodName, arguments), TIMEOUT_MILLIS, MILLISECONDS)) {
          throw new TimeoutException();
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/FileTransformer.java

                            file = new File(targetFile, paths[i] + "_" + j);
                            if (!file.exists()) {
                                if (!file.mkdirs()) {
                                    throw new CrawlerSystemException("Could not create " + file.getAbsolutePath());
                                }
                                break;
                            }
                            if (file.isDirectory()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                return (T) this;
            }
            throw new ClassCastException();
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbPipeHandle#getPipe()
         */
        @Override
        public SmbNamedPipe getPipe () {
            return this.pipe;
        }
    
    
        @Override
        public SmbTreeHandleImpl ensureTreeConnected () throws CIFSException {
            if ( this.treeHandle == null ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Apr 13 17:05:22 UTC 2020
    - 10.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableMap.java

        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the map unmodified.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final void clear() {
        throw new UnsupportedOperationException();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

        return when {
          request.body?.isDuplex() == true -> throw ProtocolException(
            "Duplex connections are not supported for HTTP/1",
          )
          request.isChunked -> newChunkedSink() // Stream a request body of unknown length.
          contentLength != -1L -> newKnownLengthSink() // Stream a request body of a known length.
          else -> // Stream a request body of a known length.
            throw IllegalStateException(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top