Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for asError (0.09 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/framework/plugins/defaultpreemption/default_preemption.go

    		if !status.IsSuccess() {
    			return status.AsError()
    		}
    		return nil
    	}
    	addPod := func(api *framework.PodInfo) error {
    		nodeInfo.AddPodInfo(api)
    		status := pl.fh.RunPreFilterExtensionAddPod(ctx, state, pod, api, nodeInfo)
    		if !status.IsSuccess() {
    			return status.AsError()
    		}
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 25 19:36:04 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go

    			if !hasError(errs, needle) {
    				t.Errorf("missing %q in\n%v", needle, errorsAsString(errs))
    			}
    			needle = `status.conditions[0].status: Unsupported value: "unknown": supported values: "False", "True", "Unknown"`
    			if !hasError(errs, needle) {
    				t.Errorf("missing %q in\n%v", needle, errorsAsString(errs))
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  10. 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)
Back to top