Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 321 - 330 of 1,818 for rethrow (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ExportElasticsearchBuildResourcesTask.java

                throw new GradleException(
                    "buildResources can't be configured after the task ran. " + "Make sure task is not used after configuration time"
                );
            }
            resources.add(resource);
        }
    
        @TaskAction
        public void doExport() {
            if (resources.isEmpty()) {
                setDidWork(false);
                throw new StopExecutionException();
            }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 3.5K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanExecutor.java

                            plugin, goal, project.getRemotePluginRepositories(), session.getRepositorySession());
                } catch (MavenException e) {
                    throw e;
                } catch (Exception e) {
                    throw new MavenException(e);
                }
            }
    
            private MojoDescriptor getMojoDescriptor(MavenProject project, String task) {
                try {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 55.1K bytes
    - Click Count (0)
  3. src/main/java/jcifs/util/SimpleCircuitBreaker.java

            if (failureThreshold < 1) {
                throw new IllegalArgumentException("Failure threshold must be at least 1");
            }
            if (successThreshold < 1) {
                throw new IllegalArgumentException("Success threshold must be at least 1");
            }
            if (timeoutMillis < 0) {
                throw new IllegalArgumentException("Timeout must be non-negative");
            }
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

            final String p = loc.getURL().getPath();
            if (p.lastIndexOf('/') != p.length() - 1) {
                throw new SmbException(loc.getURL() + " directory must end with '/'");
            }
            if (unc.lastIndexOf('\\') != unc.length() - 1) {
                throw new SmbException(unc + " UNC must end with '\\'");
            }
    
            final SmbTreeHandleImpl th = getTreeHandle();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

                if (exception != null) {
                  throw new ExecutionException(exception);
                } else {
                  return value;
                }
    
              case CANCELLED:
              case INTERRUPTED:
                throw cancellationExceptionWithCause("Task was cancelled.", exception);
    
              default:
                throw new IllegalStateException("Error, synchronizer in invalid state: " + state);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 02:20:33 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/DockerSupportService.java

            return lastResultOutput.contains("Cannot connect to the Docker daemon") == false;
        }
    
        /**
         * Given a list of tasks that requires Docker, check whether Docker is available, otherwise throw an exception.
         *
         * @throws GradleException if Docker is not available. The exception message gives the reason.
         */
        void failIfDockerUnavailable(List<String> tasks) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 14.8K bytes
    - Click Count (0)
  7. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            // Tamper with the encrypted data
            encrypted[encrypted.length - 1] ^= 0xFF;
    
            // Should throw exception due to authentication tag failure
            assertThrows(GeneralSecurityException.class, () -> {
                storage.decryptCredentials(encrypted);
            }, "Should throw GeneralSecurityException when decrypting tampered data");
    
            // Clean up
            Arrays.fill(plaintext, '\0');
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            () -> {
              throw new SomeError();
            },
            directExecutor());
        assertThrows(SomeError.class, () -> input.set("foo"));
      }
    
      public void testTransformAsync_cancelPropagatesToInput() throws Exception {
        SettableFuture<Foo> input = SettableFuture.create();
        AsyncFunction<Foo, Bar> function =
            unused -> {
              throw new AssertionFailedError("Unexpected call to apply.");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            () -> {
              throw new SomeError();
            },
            directExecutor());
        assertThrows(SomeError.class, () -> input.set("foo"));
      }
    
      public void testTransformAsync_cancelPropagatesToInput() throws Exception {
        SettableFuture<Foo> input = SettableFuture.create();
        AsyncFunction<Foo, Bar> function =
            unused -> {
              throw new AssertionFailedError("Unexpected call to apply.");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/curl/CurlRequest.java

         *
         * @param method the HTTP method
         * @throws IllegalArgumentException if method is null
         */
        public CurlRequest(final Method method) {
            if (method == null) {
                throw new IllegalArgumentException("method must not be null");
            }
            this.method = method;
        }
    
        /**
         * Constructs a new CurlRequest with the specified HTTP method and URL.
         *
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 19.7K bytes
    - Click Count (0)
Back to Top