Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 841 - 850 of 2,684 for catch (0.02 seconds)

  1. src/main/java/org/codelibs/fess/app/web/admin/pathmap/AdminPathmapAction.java

            getPathMapping(form).ifPresent(entity -> {
                try {
                    pathMappingService.store(entity);
                    saveInfo(messages -> messages.addSuccessCrudCreateCrudTable(GLOBAL));
                } catch (final Exception e) {
                    logger.warn("Failed to process a request.", e);
                    throwValidationError(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, buildThrowableMessage(e)),
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 20 13:56:35 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/util/ports/DefaultPortDetector.java

                try {
                    ds.setReuseAddress(true);
                } finally {
                    ds.close();
                }
    
                return true;
            } catch (IOException e) {
                return false;
            }
    
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.3K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/opensearch/log/exbhv/UserInfoBhv.java

                try {
                    final Instant instant = Instant.from(DateTimeFormatter.ISO_INSTANT.parse(value.toString()));
                    return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
                } catch (final DateTimeParseException e) {
                    logger.debug("Invalid date format: {}", value, e);
                }
            }
            return DfTypeUtil.toLocalDateTime(value);
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java

                    throw new IllegalArgumentException(
                            "File path is outside allowed directory: path=" + canonicalPath + ", allowed=" + allowedPaths);
                }
            } catch (final IOException e) {
                throw new IllegalArgumentException("Invalid file path: path=" + path, e);
            }
        }
    
        /**
         * Gets the servlet context.
         *
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 13:57:12 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/exception/ContainerNotAvailableExceptionTest.java

            // Test throwing and catching the exception
            String componentName = "cacheManager";
            try {
                throw new ContainerNotAvailableException(componentName);
            } catch (ContainerNotAvailableException e) {
                assertEquals(componentName + " is not available.", e.getMessage());
                assertNull(e.getCause());
                assertEquals(componentName, e.getComponentName());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  6. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          put(key, calculatedValue);
        } catch (RuntimeException e) {
          statsCounter.recordLoadException(ticker.read() - startTime);
          throw new UncheckedExecutionException(e);
        } catch (Exception e) {
          statsCounter.recordLoadException(ticker.read() - startTime);
          throw new ExecutionException(e);
        } catch (Error e) {
          statsCounter.recordLoadException(ticker.read() - startTime);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  7. src/test/java/jcifs/SmbWatchHandleTest.java

            // Execute and verify
            CIFSException thrown = assertThrows(CIFSException.class, () -> {
                watchHandle.watch();
            });
    
            assertEquals("Watch operation failed", thrown.getMessage());
            verify(watchHandle, times(1)).watch();
        }
    
        /**
         * Test call() method delegates to watch()
         */
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.2K bytes
    - Click Count (1)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellCommandRegistryHolder.java

            for (CommandRegistry commandRegistry : commandRegistries) {
                if (commandRegistry instanceof AutoCloseable closeable) {
                    try {
                        closeable.close();
                    } catch (Exception e) {
                        exceptions.add(e);
                    }
                }
            }
            if (!exceptions.isEmpty()) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 17 09:50:45 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDescResponse.java

                return 4;
            }
    
            try {
                securityDescriptor = new SecurityDescriptor();
                bufferIndex += securityDescriptor.decode(buffer, bufferIndex, len);
            } catch (final IOException ioe) {
                throw new RuntimeException(ioe.getMessage());
            }
    
            return bufferIndex - start;
        }
    
        @Override
        public String toString() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/net/InetAddressesTest.java

            } catch (IllegalArgumentException e) {
              if (!isNumeric) {
                // Android doesn't recognize %interface as valid
                continue;
              }
              throw e;
            }
            Inet6Address platformValue;
            try {
              platformValue = (Inet6Address) InetAddress.getByName(withScopeId);
            } catch (UnknownHostException e) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 36.3K bytes
    - Click Count (0)
Back to Top