- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 40 for parsererror (0.14 sec)
-
src/net/net.go
t, ok := e.Err.(temporary) return ok && t.Temporary() } // A ParseError is the error type of literal network address parsers. type ParseError struct { // Type is the type of string that was expected, such as // "IP address", "CIDR address". Type string // Text is the malformed text string. Text string } func (e *ParseError) Error() string { return "invalid " + e.Type + ": " + e.Text }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 26.8K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
if strings.HasSuffix(name, ".go") { if error := tf.error(); error != "" { badGoFile(name, errors.New(tf.error())) continue } else if parseError := tf.parseError(); parseError != "" { badGoFile(name, parseErrorFromString(tf.parseError())) // Fall through: we still want to list files with parse errors. } } var shouldBuild = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/time/format.go
} var errBad = errors.New("bad value for field") // placeholder not passed to user // ParseError describes a problem parsing a time string. type ParseError struct { Layout string Value string LayoutElem string ValueElem string Message string } // newParseError creates a new ParseError. // The provided value and valueElem are cloned to avoid escaping their values.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:09:28 UTC 2024 - 49.3K bytes - Viewed (0) -
api/go1.17.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 20:31:46 UTC 2023 - 18K bytes - Viewed (0) -
src/net/error_test.go
second: if isPlatformError(nestedErr) { return nil } switch err := nestedErr.(type) { case *AddrError, *timeoutError, *DNSError, InvalidAddrError, *ParseError, *poll.DeadlineExceededError, UnknownNetworkError: return nil case interface{ isAddrinfoErrno() }: return nil case *os.SyscallError: nestedErr = err.Err goto third case *fs.PathError: // for Plan 9
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 20.3K bytes - Viewed (0) -
src/go/internal/gccgoimporter/testdata/time.gox
func Now () <type 3>; const October <type 18> = 10 ; func Parse (layout <type -16>, value <type -16>) (? <type 3>, ? <type -19>); func ParseDuration (s <type -16>) (? <type 1>, ? <type -19>); type <type 50 "ParseError" <type 51 struct { Layout <type -16>; Value <type -16>; LayoutElem <type -16>; ValueElem <type -16>; Message <type -16>; }> func (e <type 52 *<type 50>>) Error () <type -16>; >;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 30 21:33:51 UTC 2021 - 7.3K bytes - Viewed (0) -
src/net/netip/netip_pkg_test.go
t.Run(test.ip, func(t *testing.T) { _, err := ParseAddr(test.ip) if err == nil { t.Fatal("no error") } if _, ok := err.(parseAddrError); !ok { t.Errorf("error type is %T, want parseIPError", err) } if test.errstr == "" { test.errstr = "unable to parse IP" } if got := err.Error(); !strings.Contains(got, test.errstr) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 02 15:37:19 UTC 2023 - 9K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/catalog/TomlDependenciesExtensionIntegrationTest.groovy
commons-lib = "1.0" [libraries] lib = {group = "org.gradle.test", name="lib", version.ref="commons-lib"} """ when: fails 'help' then: verifyContains(failure.error, parseError { inCatalog('libs') addError("In file '${tomlFile.absolutePath}' at line 3, column 1: Unexpected \'/\', expected a newline or end-of-input") })
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 09:03:53 UTC 2024 - 33K bytes - Viewed (0) -
src/net/net_test.go
t.Errorf("Read error is unexpectedly temporary: %v", err) } } // The various errors should implement the Error interface. func TestErrors(t *testing.T) { var ( _ Error = &OpError{} _ Error = &ParseError{} _ Error = &AddrError{} _ Error = UnknownNetworkError("") _ Error = InvalidAddrError("") _ Error = &timeoutError{} _ Error = &DNSConfigError{} _ Error = &DNSError{} )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 21:04:44 UTC 2024 - 13.3K bytes - Viewed (0) -
pkg/registry/flowcontrol/ensurer/strategy.go
// Log this because it is not an expected situation. klog.V(4).InfoS("Skipping deletion of APF object with malformed "+flowcontrolv1.AutoUpdateAnnotationKey+" annotation", "name", name, "annotationValue", value, "parseError", err) continue } if !autoUpdate { klog.V(5).InfoS("Skipping deletion of APF object with "+flowcontrolv1.AutoUpdateAnnotationKey+"=false annotation", "name", name) continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:40 UTC 2023 - 14K bytes - Viewed (0)