Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 4,161 for ErrorIs (0.13 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KaFe10Resolver.kt

                Errors.NO_RECEIVER_ALLOWED,
                Errors.ILLEGAL_SELECTOR,
                Errors.FUNCTION_EXPECTED,
                Errors.FUNCTION_CALL_EXPECTED,
                Errors.NO_CONSTRUCTOR,
                Errors.OVERLOAD_RESOLUTION_AMBIGUITY,
                Errors.NONE_APPLICABLE,
                Errors.CANNOT_COMPLETE_RESOLVE,
                Errors.UNRESOLVED_REFERENCE_WRONG_RECEIVER,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  2. src/errors/join_test.go

    package errors_test
    
    import (
    	"errors"
    	"reflect"
    	"testing"
    )
    
    func TestJoinReturnsNil(t *testing.T) {
    	if err := errors.Join(); err != nil {
    		t.Errorf("errors.Join() = %v, want nil", err)
    	}
    	if err := errors.Join(nil); err != nil {
    		t.Errorf("errors.Join(nil) = %v, want nil", err)
    	}
    	if err := errors.Join(nil, nil); err != nil {
    		t.Errorf("errors.Join(nil, nil) = %v, want nil", err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 17 21:48:12 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  3. src/cmd/gofmt/testdata/import.golden

    package main
    
    import (
    	"errors"
    	"fmt"
    	"io"
    	"log"
    	"math"
    )
    
    import (
    	"fmt"
    
    	"math"
    
    	"log"
    
    	"errors"
    
    	"io"
    )
    
    // We reset the line numbering to test that
    // the formatting works independent of line directives
    //line :19
    
    import (
    	"errors"
    	"fmt"
    	"io"
    	"log"
    	"math"
    
    	"fmt"
    
    	"math"
    
    	"log"
    
    	"errors"
    
    	"io"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 23:33:26 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  4. pkg/controller/nodeipam/ipam/timeout_test.go

    		err  error
    		want time.Duration
    	}{
    		{nil, time10s},
    		{nil, time10s},
    		{errors.New("x"), time.Second},
    		{errors.New("x"), 2 * time.Second},
    		{errors.New("x"), 4 * time.Second},
    		{errors.New("x"), 5 * time.Second},
    		{errors.New("x"), 5 * time.Second},
    		{nil, time10s},
    		{nil, time10s},
    		{errors.New("x"), time.Second},
    		{errors.New("x"), 2 * time.Second},
    		{nil, time10s},
    	} {
    		timeout.Update(testStep.err == nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 20:48:08 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  5. operator/pkg/util/errs.go

    // If newErrs is empty, nothing is appended.
    func AppendErrs(errors []error, newErrs []error) Errors {
    	if len(newErrs) == 0 {
    		return errors
    	}
    	for _, e := range newErrs {
    		errors = AppendErr(errors, e)
    	}
    	if len(errors) == 0 {
    		return nil
    	}
    	return errors
    }
    
    // ToString returns a string representation of errors, with elements separated by separator string. Any nil errors in the
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 3.1K bytes
    - Viewed (0)
  6. cmd/admin-handler-utils.go

    				Description:    err.Error(),
    				HTTPStatusCode: http.StatusBadRequest,
    			}
    		case errors.Is(err, kes.ErrKeyExists):
    			apiErr = APIError{
    				Code:           "XMinioKMSKeyExists",
    				Description:    err.Error(),
    				HTTPStatusCode: http.StatusConflict,
    			}
    
    		// Tier admin API errors
    		case errors.Is(err, madmin.ErrTierNameEmpty):
    			apiErr = APIError{
    				Code:           "XMinioAdminTierNameEmpty",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/errors/storage.go

    		return errors.NewConflict(qualifiedResource, name, err)
    	case storage.IsUnreachable(err):
    		return errors.NewServerTimeout(qualifiedResource, "update", 2) // TODO: make configurable or handled at a higher level
    	case storage.IsNotFound(err):
    		return errors.NewNotFound(qualifiedResource, name)
    	case storage.IsInternalError(err):
    		return errors.NewInternalError(err)
    	default:
    		return err
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 08 15:39:10 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_profile.txt

    [short] skip
    
    # Check go test -cpuprofile creates errors.test
    go test -cpuprofile errors.prof errors
    exists -exec errors.test$GOEXE
    
    # Check go test -cpuprofile -o myerrors.test creates errors.test
    go test -cpuprofile errors.prof -o myerrors.test$GOEXE errors
    exists -exec myerrors.test$GOEXE
    
    # Check go test -mutexprofile creates errors.test
    go test -mutexprofile errors.prof errors
    exists -exec errors.test$GOEXE
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 637 bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/fromLanguageTree/LanguageTreeToDom.kt

                val values = blockElement.args.filterIsInstance<FunctionArgument.Positional>().map { exprToValue(it.expr) }
                errors += values.filterIsInstance<ExprConversion.Failed>().flatMap { it.errors }
    
                if (errors.isNotEmpty()) {
                    errorNode(blockElement, errors) // TODO: reason
                } else {
                    val arguments = values.map { (it as ExprConversion.Converted).valueNode }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. tests/test_dependency_contextmanager.py

        assert "/async_raise" in errors
        errors.clear()
    
    
    def test_async_raise_server_error():
        client = TestClient(app, raise_server_exceptions=False)
        response = client.get("/async_raise")
        assert response.status_code == 500, response.text
        assert state["/async_raise"] == "asyncgen raise finalized"
        assert "/async_raise" in errors
        errors.clear()
    
    
    def test_context_b():
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top