Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for asError (0.17 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/verifier/DependencyVerifier.java

                            if (result.hasError()) {
                                VerificationFailure error = result.asError(publicKeyService);
                                builder.failWith(error);
                                if (error.isFatal()) {
                                    return;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:42:50 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. pkg/scheduler/testing/framework/fake_extender.go

    		err := f.runPredicate(pod, node)
    		if err.IsSuccess() {
    			return []*v1.Pod{}, 0, true, nil
    		} else if err.IsRejected() {
    			return nil, 0, false, nil
    		} else {
    			return nil, 0, false, err.AsError()
    		}
    	}
    
    	// Otherwise, as a extender support preemption and have cached node info, we will assume cachedNodeNameToInfo is available
    	// and get cached node info by given node name.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. pkg/scheduler/schedule_one.go

    	preScoreStatus := fwk.RunPreScorePlugins(ctx, state, pod, nodes)
    	if !preScoreStatus.IsSuccess() {
    		return nil, preScoreStatus.AsError()
    	}
    
    	// Run the Score plugins.
    	nodesScores, scoreStatus := fwk.RunScorePlugins(ctx, state, pod, nodes)
    	if !scoreStatus.IsSuccess() {
    		return nil, scoreStatus.AsError()
    	}
    
    	// Additional details logged at level 10 if enabled.
    	loggerVTen := logger.V(10)
    	if loggerVTen.Enabled() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:28:08 UTC 2024
    - 43.4K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/interface.go

    	code := s.Code()
    	return code == Unschedulable || code == UnschedulableAndUnresolvable || code == Pending
    }
    
    // AsError returns nil if the status is a success, a wait or a skip; otherwise returns an "error" object
    // with a concatenated message on reasons of the Status.
    func (s *Status) AsError() error {
    	if s.IsSuccess() || s.IsWait() || s.IsSkip() {
    		return nil
    	}
    	if s.err != nil {
    		return s.err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/preemption/preemption.go

    			status = framework.AsStatus(fmt.Errorf("expected at least one victim pod on node %q", nodeInfoCopy.Node().Name))
    		}
    		statusesLock.Lock()
    		if status.Code() == framework.Error {
    			errs = append(errs, status.AsError())
    		}
    		nodeStatuses[nodeInfoCopy.Node().Name] = status
    		statusesLock.Unlock()
    	}
    	fh.Parallelizer().Until(ctx, len(potentialNodes), checkNode, ev.PluginName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  6. src/text/template/parse/parse_test.go

    	{"undefined variable", "{{$x}}", hasError, ""},
    	{"variable undefined after end", "{{with $x := 4}}{{end}}{{$x}}", hasError, ""},
    	{"variable undefined in template", "{{template $v}}", hasError, ""},
    	{"declare with field", "{{with $x.Y := 4}}{{end}}", hasError, ""},
    	{"template with field ref", "{{template .X}}", hasError, ""},
    	{"template with var", "{{template $v}}", hasError, ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  7. internal/event/target/elasticsearch.go

    	}
    	xhttp.DrainBody(resp.Body)
    	return !resp.IsError(), nil
    }
    
    func (c *esClientV7) entryExists(ctx context.Context, index string, key string) (bool, error) {
    	res, err := c.Exists(
    		index,
    		key,
    		c.Exists.WithContext(ctx),
    	)
    	if err != nil {
    		return false, err
    	}
    	xhttp.DrainBody(res.Body)
    	return !res.IsError(), nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

            if (response.hasError()) {
                logger.warn("Failed to delete all words.", response.getErrors().get(0));
                return false;
            }
            refresh();
            return true;
        }
    
        public boolean deleteDocumentWords() {
            final SuggestDeleteResponse response = suggester.indexer().deleteDocumentWords();
            if (response.hasError()) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

    task someTask(type: SomeTask) {
        v = $initialValue
        d = file("build/out")
    }
    """
            def isError = expectedValidationProblem != null
    
            when:
            if (isError) {
                fails 'someTask'
            } else {
                succeeds "someTask"
            }
    
            then:
            if (isError) {
                failure.error.contains(expectedValidationProblem)
            }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  10. src/syscall/syscall_unix.go

    			return s
    		}
    	}
    	return "errno " + itoa.Itoa(int(e))
    }
    
    func (e Errno) Is(target error) bool {
    	switch target {
    	case oserror.ErrPermission:
    		return e == EACCES || e == EPERM
    	case oserror.ErrExist:
    		return e == EEXIST || e == ENOTEMPTY
    	case oserror.ErrNotExist:
    		return e == ENOENT
    	case errorspkg.ErrUnsupported:
    		return e == ENOSYS || e == ENOTSUP || e == EOPNOTSUPP
    	}
    	return false
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top