Search Options

Results per page
Sort
Preferred Languages
Advance

Results 471 - 480 of 2,976 for throw (0.03 sec)

  1. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

        require(flags shr 15 != 0) { "not a response" }
    
        val responseCode = flags and 0xf
    
        if (responseCode == NXDOMAIN) {
          throw UnknownHostException("$hostname: NXDOMAIN")
        } else if (responseCode == SERVFAIL) {
          throw UnknownHostException("$hostname: SERVFAIL")
        }
    
        val questionCount = buf.readShort().toInt() and 0xffff
        val answerCount = buf.readShort().toInt() and 0xffff
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/EncodableTest.java

        }
    
        @Test
        @DisplayName("encode() throws when destination too small")
        void encodeThrowsWhenDestinationTooSmall() {
            byte[] src = makeSeq(5);
            Encodable enc = new ByteEncodable(src, 0, 5);
            byte[] dst = new byte[4]; // too small
    
            assertThrows(ArrayIndexOutOfBoundsException.class, () -> enc.encode(dst, 0),
                    "System.arraycopy should throw for insufficient destination space");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/curl/CurlResponseTest.java

                assertSame(exception, e.getCause());
            } catch (IOException e) {
                fail("Should throw CurlException, not IOException");
            }
        }
    
        @Test
        public void testGetContentWithParser() throws IOException {
            CurlResponse response = new CurlResponse();
            response.setEncoding("UTF-8");
            String testContent = "42";
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProviderTest.java

            assertProvideThrowsException("TestšŸ˜€Classification");
        }
    
        // Helper method to assert that provide() throws ProvidedClassificationNotFoundException
        private void assertProvideThrowsException(String classificationName) {
            try {
                provider.provide(classificationName);
                fail("Should throw ProvidedClassificationNotFoundException for: " + classificationName);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/TypeVisitor.java

     *     visit(t.getGenericComponentType());
     *   }
     *   protected void visitTypeVariable(TypeVariable<?> t) {
     *     throw new IllegalArgumentException("Cannot contain type variable.");
     *   }
     *   protected void visitWildcardType(WildcardType t) {
     *     throw new IllegalArgumentException("Cannot contain wildcard type.");
     *   }
     * }.visit(type);
     * }
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

          }
        }
      }
    
      @Test
      @Throws(Exception::class)
      fun compressedMessages() {
        successfulExtensions("permessage-deflate")
      }
    
      @Test
      @Throws(Exception::class)
      fun compressedMessagesNoClientContextTakeover() {
        successfulExtensions("permessage-deflate; client_no_context_takeover")
      }
    
      @Test
      @Throws(Exception::class)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeRangeMap.java

              return null;
            }
    
            @Override
            public Range<Comparable<?>> span() {
              throw new NoSuchElementException();
            }
    
            @Override
            public void put(Range<Comparable<?>> range, Object value) {
              checkNotNull(range);
              throw new IllegalArgumentException(
                  "Cannot insert range " + range + " into an empty subRangeMap");
            }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/DateConversionUtil.java

            public DateFormat next() {
                if (!hasNext()) {
                    throw new NoSuchElementException();
                }
                final int style = STYLES[index++];
                return DateFormat.getDateInstance(style, locale);
            }
    
            @Override
            public void remove() {
                throw new ClUnsupportedOperationException("remove");
            }
    
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  9. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractor.java

                if (exitValue == 143 && mt.isTeminated()) {
                    throw new ExecutionTimeoutException("The command execution is timeout: " + cmdList);
                }
            } catch (final CrawlerSystemException e) {
                throw e;
            } catch (final InterruptedException e) {
                if (mt != null && mt.isTeminated()) {
                    throw new ExecutionTimeoutException("The command execution is timeout: " + cmdList, e);
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 16K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

        if (clazz.isAnnotation()) {
          return (Class<? extends Annotation>) clazz;
        } else {
          throw new IllegalArgumentException(rootLocaleFormat("%s is not an annotation.", clazz));
        }
      }
    
      public void testFeatureEnums() throws Exception {
        assertGoodFeatureEnum(CollectionFeature.class);
        assertGoodFeatureEnum(ListFeature.class);
        assertGoodFeatureEnum(SetFeature.class);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top