Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 411 for Throw (0.12 sec)

  1. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/UncheckedException.java

            }
            if (t instanceof RuntimeException) {
                throw (RuntimeException) t;
            }
            if (t instanceof Error) {
                throw (Error) t;
            }
            if (t instanceof IOException) {
                if (preserveMessage) {
                    throw new UncheckedIOException(t.getMessage(), t);
                } else {
                    throw new UncheckedIOException(t);
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java

            requireNonNull(target, "target is null");
            if (relativeSource.isAbsolute()) {
                throw new IllegalArgumentException("Supplied URI is not relative");
            }
            URI source = baseURI.resolve(relativeSource);
            if (!source.toASCIIString().startsWith(baseURI.toASCIIString())) {
                throw new IllegalArgumentException("Supplied relative URI escapes baseUrl");
            }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 16:33:18 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/AbstractBroadcastDispatch.java

            } catch (UncheckedException e) {
                throw new ListenerNotificationException(invocation, getErrorMessage(), Collections.singletonList(e.getCause()));
            } catch (BuildOperationInvocationException e) {
                throw new ListenerNotificationException(invocation, getErrorMessage(), Collections.singletonList(e.getCause()));
            } catch (RuntimeException t) {
                throw t;
            } catch (Throwable t) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/runtime/lock_sema.go

    			gp.m.blocked = true
    			if semasleep(-1) < 0 {
    				throw("runtime: unable to acquire - semaphore out of sync")
    			}
    			gp.m.blocked = false
    			return true
    		default:
    			throw("runtime: unexpected waitm - semaphore out of sync")
    		}
    	}
    }
    
    func notetsleep(n *note, ns int64) bool {
    	gp := getg()
    	if gp != gp.m.g0 {
    		throw("notetsleep not on g0")
    	}
    	semacreate(gp.m)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/LegacyDaemon.groovy

                return
            }
            throw new AssertionError("""Timeout waiting for daemon with pid ${context.pid} to reach state ${state}.
    Current state is ${lastLogState}.""")
        }
    
        @Override
        protected void assertHasState(State state) {
            assert logFileProbe.currentState == state
        }
    
        @Override
        void changeTokenVisibleToClient() {
            throw new UnsupportedOperationException()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 15:22:16 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/oldresult/TransientConfigurationResultsBuilder.java

                            if (parent == null) {
                                throw new IllegalStateException(String.format("Unexpected parent dependency id %s. Seen ids: %s", parentId, allDependencies.keySet()));
                            }
                            if (child == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/file-temp/src/main/java/org/gradle/api/internal/file/temp/DefaultTemporaryFileProvider.java

                if (!tmpDir.delete()) {
                    throw new IOException("Failed to delete file: " + tmpDir);
                }
                if (!tmpDir.mkdir()) {
                    throw new IOException("Failed to make directory: " + tmpDir);
                }
                return tmpDir;
            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 19 21:16:13 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. src/internal/runtime/exithook/hooks.go

    // If an exit hook invokes exit in another goroutine, that exit will block.
    func Run(code int) {
    	for !locked.CompareAndSwap(0, 1) {
    		if Goid() == runGoid.Load() {
    			Throw("exit hook invoked exit")
    		}
    		Gosched()
    	}
    	defer locked.Store(0)
    	runGoid.Store(Goid())
    	defer runGoid.Store(0)
    
    	defer func() {
    		if e := recover(); e != nil {
    			Throw("exit hook invoked panic")
    		}
    	}()
    
    	for len(hooks) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java

        }
    
        protected ScopeState getScopeState() {
            if (values.isEmpty()) {
                throw new OutOfScopeException("Cannot access session scope outside of a scoping block");
            }
            return values.get(0);
        }
    
        public void exit() {
            if (values.isEmpty()) {
                throw new IllegalStateException();
            }
            values.remove(0);
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformErrorHandler.java

            if (lastError != null) {
                throw new ClassNotFoundException(
                    "A pending instrumentation exception prevented loading a class " + className + " in " + classLoaderName, lastError);
            }
        }
    
        /**
         * Call this when an error occurs during class loading.
         * This method only records the error but doesn't throw any exceptions.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top