Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 65 for OnError (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/KotlinCompiler.kt

                "${severity.presentableName[0]}: ${msg()}"
    
            fun onError() {
                errors += ScriptCompilationError(message, location)
                log.error { taggedMsg() }
            }
    
            fun onWarning() {
                when (onCompilerWarning) {
                    EmbeddedKotlinCompilerWarning.FAIL -> onError()
                    EmbeddedKotlinCompilerWarning.WARN -> log.warn { taggedMsg() }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 31 08:46:17 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  6. 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)
  7. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintCheckerTest.kt

            override var trace: PropertyTrace
                get() = undefined()
                set(_) {}
    
            override fun onProblem(problem: PropertyProblem): Unit =
                undefined()
    
            override fun onError(error: Exception, message: StructuredMessageBuilder) =
                undefined()
    
            override fun push(codec: Codec<Any?>): Unit =
                undefined()
    
            override fun push(owner: IsolateOwner): Unit =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. pkg/scheduler/util/utils.go

    	}
    
    	patchFn := func() error {
    		_, err := cs.CoreV1().Pods(old.Namespace).Patch(ctx, old.Name, types.StrategicMergePatchType, patchBytes, metav1.PatchOptions{}, "status")
    		return err
    	}
    
    	return retry.OnError(retry.DefaultBackoff, Retriable, patchFn)
    }
    
    // DeletePod deletes the given <pod> from API server
    func DeletePod(ctx context.Context, cs kubernetes.Interface, pod *v1.Pod) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/tasks/GeneratePrecompiledScriptPluginAccessors.kt

            pluginRequests,
            buildscript,
            pluginManager,
            classLoaderScope
        )
    }
    
    
    private
    fun <T> withCapturedOutputOnError(block: () -> T, onError: (ErrorWithCapturedOutput) -> T): T {
        val outCapture = ThreadLocalCapturePrintStream(System.out)
        val errCapture = ThreadLocalCapturePrintStream(System.err)
        return try {
            val previousOut = System.out
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  10. src/main/webapp/js/admin/plugins/form-validator/file.js

    ction(a,b,c,d){var e=d[b]||"";a.errorMessageKey="",a.errorMessage=e.replace("%s",c)},f=function(c,d,e){var f=new FileReader,g=new Image;f.readAsDataURL(c),f.onload=function(c){g.onload=function(){a(b).trigger("imageValidation",[this]),d(this)},g.onerror=function(){e()},g.src=c.target.result}};a.formUtils.addValidator({name:"mime",validatorFunction:function(b,f,g,h){if(c){var i=!0,j=f.get(0).files||[],k="",l=d(f);return j.length&&(a.each(j,function(b,c){return i=!1,k=c.type||c.name.substring(c.na...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 4.6K bytes
    - Viewed (0)
Back to top