Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 511 - 520 of 2,310 for rethrow (0.16 seconds)

  1. src/main/java/org/codelibs/core/io/FileUtil.java

         * <p>
         * Example usage:
         * </p>
         * <pre>
         * Path baseDir = Paths.get("/var/app/data");
         * Path userPath = Paths.get(userInput);
         * if (!FileUtil.isPathSafe(userPath, baseDir)) {
         *     throw new SecurityException("Path traversal attempt detected");
         * }
         * </pre>
         *
         * @param pathToCheck the path to validate (must not be {@literal null})
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ValidateJsonNoKeywordsTask.java

                        errorsForFile.forEach(err -> pw.printf("\t%s%n", err));
                        pw.println();
                    });
                }
            } catch (FileNotFoundException e) {
                throw new GradleException("Failed to write keywords report", e);
            }
    
            String message = String.format(
                Locale.ROOT,
                "Error validating JSON. See the report at: %s%s%s",
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 7.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/base/AbstractIterator.java

      public final T next() {
        if (!hasNext()) {
          throw new NoSuchElementException();
        }
        state = State.NOT_READY;
        // Safe because hasNext() ensures that tryToComputeNext() has put a T into `next`.
        T result = uncheckedCastNullableTToT(next);
        next = null;
        return result;
      }
    
      @Override
      public final void remove() {
        throw new UnsupportedOperationException();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/pac/kerberos/KerberosAuthDataTest.java

            assertThrows(PACDecodingException.class, () -> {
                KerberosAuthData.parse(KerberosConstants.AUTH_DATA_PAC, invalidToken, mockKeys);
            }, "Parsing an invalid PAC token should throw a PACDecodingException.");
        }
    
        /**
         * Test parsing of {@link KerberosConstants#AUTH_DATA_RELEVANT} with an invalid token.
         * Expects a {@link PACDecodingException} to be thrown.
         */
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/LatestArtifactTransformation.java

                        throw new ArtifactNotFoundException("Unable to determine the latest version", artifact);
                    }
    
                    artifact.setBaseVersion(version);
                    artifact.updateVersion(version, request.getLocalRepository());
                } catch (RepositoryMetadataResolutionException e) {
                    throw new ArtifactResolutionException(e.getMessage(), artifact, e);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rerun/TestTaskConfigurer.java

            try {
                return makeAccessible(type.getDeclaredMethod(methodName, paramTypes));
            } catch (NoSuchMethodException e) {
                throw new RuntimeException(e);
            }
        }
    
        private static Method makeAccessible(Method method) {
            method.setAccessible(true);
            return method;
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 3.1K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/thumbnail/ThumbnailManagerTest.java

                    if (baseDir.mkdirs()) {
                        logger.info("Created: {}", baseDir.getAbsolutePath());
                    }
                    if (!baseDir.isDirectory()) {
                        throw new FessSystemException("Not found: " + baseDir.getAbsolutePath());
                    }
                    thumbnailTaskQueue = new LinkedBlockingQueue<>(thumbnailTaskQueueSize);
                    // Don't start thread
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 20.4K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/netbios/NbtSocket.java

                final int errorCode = in.read() & 0xFF;
                close();
                throw new NbtException(NbtException.ERR_SSN_SRVC, errorCode);
            case -1:
                throw new NbtException(NbtException.ERR_SSN_SRVC, NbtException.CONNECTION_REFUSED);
            default:
                close();
                throw new NbtException(NbtException.ERR_SSN_SRVC, 0);
            }
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java

            if (buf.dec_ndr_small() != 5 || buf.dec_ndr_small() != 0) {
                throw new NdrException("DCERPC version not supported");
            }
            ptype = buf.dec_ndr_small();
            flags = buf.dec_ndr_small();
            if (buf.dec_ndr_long() != 0x00000010) { /* Little-endian / ASCII / IEEE */
                throw new NdrException("Data representation not supported");
            }
            length = buf.dec_ndr_short();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/DefaultBeanConfigurator.java

                plexusConfig = plexusConfiguration;
            } else if (configuration instanceof Xpp3Dom xpp3Dom) {
                plexusConfig = new XmlPlexusConfiguration(xpp3Dom);
            } else {
                throw new BeanConfigurationException("unsupported bean configuration source ("
                        + configuration.getClass().getName() + ")");
            }
    
            if (request.getConfigurationElement() != null) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8.3K bytes
    - Click Count (0)
Back to Top