- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 118 for error_0 (0.11 sec)
-
pkg/kubelet/container/sync_result_test.go
} // If the PodSyncResult is failed, it should be error result = PodSyncResult{} result.AddSyncResult(okResults...) result.Fail(errors.New("error")) if result.Error() == nil { t.Errorf("PodSyncResult should be error: %v", result) } // If the PodSyncResult is added an error PodSyncResult, it should be error errResult := PodSyncResult{} errResult.AddSyncResult(errResults...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 16:48:17 UTC 2019 - 2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/errors.go
// An errorDesc describes part of a type-checking error. type errorDesc struct { pos syntax.Pos msg string } // An error_ represents a type-checking error. // A new error_ is created with Checker.newError. // To report an error_, call error_.report. type error_ struct { check *Checker desc []errorDesc code Code soft bool // TODO(gri) eventually determine this from an error code }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.6K bytes - Viewed (0) -
src/go/types/errors.go
// An errorDesc describes part of a type-checking error. type errorDesc struct { posn positioner msg string } // An error_ represents a type-checking error. // A new error_ is created with Checker.newError. // To report an error_, call error_.report. type error_ struct { check *Checker desc []errorDesc code Code soft bool // TODO(gri) eventually determine this from an error code }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 8.5K bytes - Viewed (0) -
src/encoding/gob/error.go
type gobError struct { err error } // errorf is like error_ but takes Printf-style arguments to construct an error. // It always prefixes the message with "gob: ". func errorf(format string, args ...any) { error_(fmt.Errorf("gob: "+format, args...)) } // error_ wraps the argument error and uses it as the argument to panic. func error_(err error) { panic(gobError{err})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 23:03:07 UTC 2022 - 1.3K bytes - Viewed (0) -
pkg/filewatcher/filewatcher_test.go
errors1 = w.Errors(watchFile1) g.Expect(errors1).To(BeNil()) events2 = w.Events(watchFile2) g.Expect(events2).To(BeNil()) errors2 = w.Errors(watchFile2) g.Expect(errors2).To(BeNil()) } func TestErrors(t *testing.T) { w := NewWatcher() if ch := w.Errors("XYZ"); ch != nil { t.Error("Expected no channel") } if ch := w.Events("XYZ"); ch != nil { t.Error("Expected no channel")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 7.9K bytes - Viewed (0) -
src/go/doc/testdata/error1.1.golden
// PACKAGE error1 IMPORTPATH testdata/error1 FILENAMES testdata/error1.go TYPES // type I0 interface { // When embedded, the predeclared error interface // must remain visible in interface types. error } // type S0 struct { // In struct types, an embedded error must only be visible // if AllDecls is set. error } // type T0 struct { ExportedField interface {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 440 bytes - Viewed (0) -
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)