Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for OnError (0.13 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/ErrorHandlingModuleComponentRepository.java

                                                                                                               Transformer<E, Throwable> onError) {
                if (checkToHandleDisabledRepository(result, onDisabled)) {
                    return;
                }
                tryResolveAndMaybeDisable(result, operation, onError);
            }
    
            private <E extends Throwable, R extends ErroringResolveResult<E>> void performOperationWithRetries(R result,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/AbstractProblemsListener.kt

    import org.gradle.internal.configuration.problems.StructuredMessageBuilder
    import java.io.IOException
    
    
    abstract class AbstractProblemsListener : ProblemsListener {
    
        override fun onError(trace: PropertyTrace, error: Exception, message: StructuredMessageBuilder) {
            // Let IO and configuration cache exceptions surface to the top.
            if (error is IOException || error is ConfigurationCacheThrowable) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime_test.go

    	start := make(chan struct{})
    	var wg sync.WaitGroup
    	for i := 0; i < 30; i++ {
    		wg.Add(1)
    		go func() {
    			<-start
    			r.OnError()
    			wg.Done()
    		}()
    	}
    	st := time.Now()
    	close(start)
    	wg.Wait()
    
    	if since := time.Since(st); since > 5*time.Second {
    		t.Errorf("OnError slept for too long: %s", since)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-problems-base/src/main/kotlin/org/gradle/internal/configuration/problems/ProblemsListener.kt

    import org.gradle.internal.service.scopes.Scope
    
    
    @EventScope(Scope.BuildTree::class)
    interface ProblemsListener {
    
        fun onProblem(problem: PropertyProblem)
    
        fun onError(trace: PropertyTrace, error: Exception, message: StructuredMessageBuilder)
    
        fun forIncompatibleTask(path: String): ProblemsListener
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 21:59:50 UTC 2024
    - 1K bytes
    - Viewed (0)
  5. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/CachedEnvironmentStateCodec.kt

                    try {
                        writeClass(update.javaClass)
                        write(update.key)
                        write(update.value)
                    } catch (error: Exception) {
                        onError(error) {
                            text("failed to write system property ")
                            reference(keyString)
                        }
                    }
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/BeanPropertyExtensions.kt

     */
    suspend fun WriteContext.writeNextProperty(name: String, value: Any?, kind: PropertyKind) {
        withPropertyTrace(kind, name) {
            try {
                write(value)
            } catch (error: Exception) {
                onError(error) {
                    when {
                        value != null -> {
                            text("error writing value of type ")
                            reference(GeneratedSubclasses.unpackType(value))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Contexts.kt

        }
    
        override fun onProblem(problem: PropertyProblem) {
            currentProblemsListener.onProblem(problem)
        }
    
        override fun onError(error: Exception, message: StructuredMessageBuilder) {
            currentProblemsListener.onError(trace, error, message)
        }
    
        override suspend fun forIncompatibleType(path: String, action: suspend () -> Unit) {
            val previousListener = currentProblemsListener
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt

              override fun onAnswer(
                addresses: List<InetAddress>,
                rCode: Int,
              ) {
                callback.onResponse(hostname, addresses)
              }
    
              override fun onError(e: DnsResolver.DnsException) {
                callback.onFailure(
                  hostname,
                  UnknownHostException(e.message).apply {
                    initCause(e)
                  },
                )
              }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 01 10:07:48 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

    	// package for that to be accessible here.
    	lastErrorTimeLock sync.Mutex
    	lastErrorTime     time.Time
    }
    
    // OnError will block if it is called more often than the embedded period time.
    // This will prevent overly tight hot error loops.
    func (r *rudimentaryErrorBackoff) OnError() {
    	now := time.Now() // start the timer before acquiring the lock
    	r.lastErrorTimeLock.Lock()
    	d := now.Sub(r.lastErrorTime)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/sink/OutputEventRenderer.java

                }
                stdErrListener = new LazyListener(new Factory<OutputEventListener>() {
                    @Override
                    public OutputEventListener create() {
                        return onError(new StyledTextOutputBackedRenderer(new StreamingStyledTextOutput(new StreamBackedStandardOutputListener((Appendable) originalStdErr))));
                    }
                });
                addChain(stdErrListener);
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 19:25:32 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top