Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for OnError (0.15 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. 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)
  4. 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)
  5. 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)
  6. 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)
  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. 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)
  9. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Codec.kt

    
    interface IsolateContext {
    
        val logger: Logger
    
        val isolate: Isolate
    
        val trace: PropertyTrace
    
        fun onProblem(problem: PropertyProblem)
    
        fun onError(error: Exception, message: StructuredMessageBuilder)
    }
    
    
    interface IsolateOwner {
        val delegate: Any
        fun <T> service(type: Class<T>): T
    }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/ConfigurationCacheProblems.kt

            return object : AbstractProblemsListener() {
                override fun onProblem(problem: PropertyProblem) {
                    onProblem(problem, ProblemSeverity.Suppressed)
                }
    
                override fun onError(trace: PropertyTrace, error: Exception, message: StructuredMessageBuilder) {
                    val failure = failureFactory.create(error)
                    onProblem(PropertyProblem(trace, StructuredMessage.build(message), error, failure))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 13:04:02 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top