Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,188 for errorstr (2.56 sec)

  1. src/syscall/syscall_js.go

    //	if errno != 0 {
    //		err = errno
    //	}
    //
    // Errno values can be tested against error values using [errors.Is].
    // For example:
    //
    //	_, _, err := syscall.Syscall(...)
    //	if errors.Is(err, fs.ErrNotExist) ...
    type Errno uintptr
    
    func (e Errno) Error() string {
    	if 0 <= int(e) && int(e) < len(errorstr) {
    		s := errorstr[e]
    		if s != "" {
    			return s
    		}
    	}
    	return "errno " + itoa.Itoa(int(e))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. src/syscall/syscall_wasip1.go

    //
    //	var err = nil
    //	if errno != 0 {
    //		err = errno
    //	}
    type Errno uint32
    
    func (e Errno) Error() string {
    	if 0 <= int(e) && int(e) < len(errorstr) {
    		s := errorstr[e]
    		if s != "" {
    			return s
    		}
    	}
    	return "errno " + itoa.Itoa(int(e))
    }
    
    func (e Errno) Is(target error) bool {
    	switch target {
    	case oserror.ErrPermission:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. src/syscall/tables_wasip1.go

    	EXDEV           Errno = 75
    	ENOTCAPABLE     Errno = 76
    	// needed by src/net/error_unix_test.go
    	EOPNOTSUPP = ENOTSUP
    )
    
    // TODO: Auto-generate some day. (Hard-coded in binaries so not likely to change.)
    var errorstr = [...]string{
    	E2BIG:           "Argument list too long",
    	EACCES:          "Permission denied",
    	EADDRINUSE:      "Address already in use",
    	EADDRNOTAVAIL:   "Address not available",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 20:58:35 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/gcc/metadata/GccMetadataProviderTest.groovy

            1 * execActionFactory.newExecAction() >> action
            1 * action.setStandardOutput(_) >> { OutputStream outstr -> outstr << output; action }
            1 * action.setErrorOutput(_) >> { OutputStream errorstr -> errorstr << error; action }
            1 * action.execute() >> result
        }
    
        void mapsPath(TestFile cygpath, String from, String to) {
            def action = Mock(ExecAction)
            def execResult = Mock(ExecResult)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 16 06:01:47 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. src/syscall/tables_js.go

    	EWOULDBLOCK     Errno = EAGAIN /* Operation would block */
    )
    
    // TODO: Auto-generate some day. (Hard-coded in binaries so not likely to change.)
    var errorstr = [...]string{
    	EPERM:           "Operation not permitted",
    	ENOENT:          "No such file or directory",
    	ESRCH:           "No such process",
    	EINTR:           "Interrupted system call",
    	EIO:             "I/O error",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 19.2K bytes
    - Viewed (0)
  6. src/reflect/all_test.go

    	}
    
    	a = nil
    	v = ValueOf(a)
    	if v.Cap() != cap(a) {
    		t.Errorf("Cap = %d want %d", v.Cap(), cap(a))
    	}
    
    	getError := func(f func()) (errorStr string) {
    		defer func() {
    			e := recover()
    			if str, ok := e.(string); ok {
    				errorStr = str
    			}
    		}()
    		f()
    		return
    	}
    	e := getError(func() {
    		var ptr *int
    		ValueOf(ptr).Cap()
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/errorsas/errorsas.go

    )
    
    const Doc = `report passing non-pointer or non-error values to errors.As
    
    The errorsas analysis reports calls to errors.As where the type
    of the second argument is not a pointer to a type implementing error.`
    
    var Analyzer = &analysis.Analyzer{
    	Name:     "errorsas",
    	Doc:      Doc,
    	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/errorsas",
    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:52:54 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/errors/errors.go

    limitations under the License.
    */
    
    package errors
    
    import (
    	"errors"
    	"fmt"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    // MessageCountMap contains occurrence for each error message.
    type MessageCountMap map[string]int
    
    // Aggregate represents an object that contains multiple errors, but does not
    // necessarily have singular semantic meaning.
    // The aggregate can be used with `errors.Is()` to check for the occurrence of
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 29 09:44:02 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/verification/report/HtmlDependencyVerificationReportRendererTest.groovy

                renderer.reportFailure(onlyIgnoredKeys("Ivy"))
            }
    
            when:
            generateReport()
    
            def errors1 = errorsFor(":someConfiguration")
            def errors2 = errorsFor(":other:configuration")
    
            then:
            verifyAll(errors1[0]) {
                module == 'org:foo:1.0'
                artifact == 'foo-1.0.jar'
                artifactTooltip == "From repository 'Maven'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  10. src/errors/errors.go

    // Copyright 2011 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package errors implements functions to manipulate errors.
    //
    // The [New] function creates errors whose only content is a text message.
    //
    // An error e wraps another error if e's type has one of the methods
    //
    //	Unwrap() error
    //	Unwrap() []error
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 19:45:41 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top