Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 2,976 for throw (0.02 sec)

  1. src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java

        }
    
        public void test_init() {
            try {
                labelTypeHelper.init();
            } catch (Exception e) {
                fail("init() should not throw an exception: " + e.getMessage());
            }
        }
    
        public void test_load() {
            int result = labelTypeHelper.load();
            assertTrue(result >= 0);
        }
    
        public void test_refresh() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            } catch (final Exception ignored) {}
        }
    
        protected void handleFileUploadException(final FileUploadException e) throws ServletException {
            // suppress logging because it can be caught by logging filter
            //log.error("Failed to parse multipart request", e);
            throw new ServletException("Failed to upload the file.", e);
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AbstractCrawlerClient.java

         */
        protected ResponseData doGet(final String url) {
            throw new CrawlerSystemException("GET method is not supported.");
        }
    
        /**
         * Performs a HEAD request.
         * @param url The URL to request.
         * @return The ResponseData.
         */
        protected ResponseData doHead(final String url) {
            throw new CrawlerSystemException("HEAD method is not supported.");
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java

            for (Entry<Object, Object> provide : provides.entrySet()) {
                String key = (String) provide.getKey();
                String value = (String) provide.getValue();
    
                if (value == null) {
                    throw new MisconfiguredToolchainException(
                            "Provides token '" + key + "' doesn't have any value configured.");
                }
    
                RequirementMatcher matcher;
                if ("version".equals(key)) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

            // another packet header, but since there's no more data, it will throw IOException
            assertThrows(IOException.class, () -> sis.read());
        }
    
        @Test
        @DisplayName("Reading with zero-length array returns 0")
        void readZeroLengthArrayReturnsZero() throws IOException {
            // Create stream with a message containing data
            byte[] data = new byte[] { 1, 2 };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. 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) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

         *
         * @param client the FTPClient instance to validate
         * @throws CrawlingAccessException if the FTP request failed
         */
        private void validateRequest(final FTPClient client) {
            final int replyCode = client.getReplyCode();
            if (replyCode >= 200 && replyCode < 300) {
                return;
            }
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exception/UnsupportedSearchExceptionTest.java

        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "Thrown exception";
    
            try {
                throw new UnsupportedSearchException(expectedMessage);
                // fail("Exception was not thrown");
            } catch (UnsupportedSearchException e) {
                assertEquals(expectedMessage, e.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/auth/chain/AuthenticationChainTest.java

                updateCalls.add(user);
                if (updateThrowsException) {
                    throw new RuntimeException("Update failed");
                }
            }
    
            @Override
            public void delete(User user) {
                deleteCalls.add(user);
                if (deleteThrowsException) {
                    throw new RuntimeException("Delete failed");
                }
            }
    
            @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableMultiset.java

       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @CanIgnoreReturnValue
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final int setCount(E element, int count) {
        throw new UnsupportedOperationException();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 20.6K bytes
    - Viewed (0)
Back to top