- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 182 for error_1 (0.24 sec)
-
src/errors/errors.go
// Unwrap method to return an []error containing a nil error value. // // An easy way to create wrapped errors is to call [fmt.Errorf] and apply // the %w verb to the error argument: // // wrapsErr := fmt.Errorf("... %w ...", ..., err, ...) // // Successive unwrapping of an error creates a tree. The [Is] and [As] // functions inspect an error's tree by examining first the 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) -
internal/config/errors-utils.go
if errors.Is(err, syscall.EADDRINUSE) { return ErrPortAlreadyInUse(err).Msg("Specified port is already in use") } else if errors.Is(err, syscall.EACCES) || errors.Is(err, syscall.EPERM) { if netErr, ok := err.(*net.OpError); ok { return ErrPortAccess(netErr).Msg("Insufficient permissions to use specified port") } } // Failed to identify what type of error this, return a simple UI error
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 3.7K bytes - Viewed (0) -
test/fixedbugs/bug286.go
println("test1 called", callee) error_ = true } } func test2(x I) { type J interface { g() I } x.(J).f() if callee != "f" { println("test2 called", callee) error_ = true } } type J interface { g() I } func test3(x I) { x.(J).f() if callee != "f" { println("test3 called", callee) error_ = true } } func main() { x := new(T)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.5K bytes - Viewed (0) -
src/encoding/gob/decgen.go
if x < ^int64(^uint(0)>>1) || int64(^uint(0)>>1) < x { error_(ovfl) } slice[i] = int(x)`, }, { "int16", "Int16", `x := state.decodeInt() if x < math.MinInt16 || math.MaxInt16 < x { error_(ovfl) } slice[i] = int16(x)`, }, { "int32", "Int32", `x := state.decodeInt() if x < math.MinInt32 || math.MaxInt32 < x { error_(ovfl) } slice[i] = int32(x)`, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 14:15:38 UTC 2024 - 5.3K bytes - Viewed (0) -
src/errors/example_test.go
} } // Output: // Failed at path: non-existing } func ExampleUnwrap() { err1 := errors.New("error1") err2 := fmt.Errorf("error2: [%w]", err1) fmt.Println(err2) fmt.Println(errors.Unwrap(err2)) // Output: // error2: [error1] // error1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 02:08:40 UTC 2023 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 40.4K bytes - Viewed (0) -
src/cmd/cgo/ast.go
if err != nil { if list, ok := err.(scanner.ErrorList); ok { // If err is a scanner.ErrorList, its String will print just // the first error and then (+n more errors). // Instead, turn it into a new Error that will return // details for all the errors. for _, e := range list { fmt.Fprintln(os.Stderr, e) } os.Exit(2) } fatalf("parsing %s: %s", name, err) } return ast1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:27 UTC 2023 - 14.3K bytes - Viewed (0) -
src/go/doc/testdata/error2.go
// license that can be found in the LICENSE file. package error2 type I0 interface { // When embedded, the locally-declared error interface // is only visible if all declarations are shown. error } type T0 struct { ExportedField interface { // error should not be visible error } } type S0 struct { // In struct types, an embedded error must only be visible // if AllDecls is set. error }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 618 bytes - Viewed (0) -
pkg/kubelet/checkpointmanager/errors/errors.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 16 05:30:20 UTC 2018 - 886 bytes - Viewed (0) -
internal/s3select/simdj/errors.go
message string statusCode int cause error } func (err *s3Error) Cause() error { return err.cause } func (err *s3Error) ErrorCode() string { return err.code } func (err *s3Error) ErrorMessage() string { return err.message } func (err *s3Error) HTTPStatusCode() int { return err.statusCode } func (err *s3Error) Error() string { return err.message }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.4K bytes - Viewed (0)