Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for parsererror (0.48 sec)

  1. src/cmd/cgo/internal/swig/swig_test.go

    	if matches == nil {
    		// Can't find version number; hope for the best.
    		t.Logf("failed to find swig version, continuing")
    		return
    	}
    
    	var parseError error
    	atoi := func(s string) int {
    		x, err := strconv.Atoi(s)
    		if err != nil && parseError == nil {
    			parseError = err
    		}
    		return x
    	}
    	var major, minor, patch int
    	major = atoi(string(matches[1]))
    	if len(matches[2]) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/internal/bisect/bisect.go

    				return nil, &parseError{"invalid pattern syntax (+ after -): " + pattern}
    			}
    			if i > 0 {
    				n := (i - start) * wid
    				if n > 64 {
    					return nil, &parseError{"pattern bits too long: " + pattern}
    				}
    				if n <= 0 {
    					return nil, &parseError{"invalid pattern syntax: " + pattern}
    				}
    				if p[start] == 'y' {
    					n = 0
    				}
    				mask := uint64(1)<<n - 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 17:28:43 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  3. src/encoding/csv/reader.go

    	"io"
    	"unicode"
    	"unicode/utf8"
    )
    
    // A ParseError is returned for parsing errors.
    // Line and column numbers are 1-indexed.
    type ParseError struct {
    	StartLine int   // Line where the record starts
    	Line      int   // Line where the error occurred
    	Column    int   // Column (1-based byte index) where the error occurred
    	Err       error // The actual error
    }
    
    func (e *ParseError) Error() string {
    	if e.Err == ErrFieldCount {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    	in := newInput(file, data)
    	defer func() {
    		if e := recover(); e != nil && e != &in.parseErrors {
    			in.parseErrors = append(in.parseErrors, Error{
    				Filename: in.filename,
    				Pos:      in.pos,
    				Err:      fmt.Errorf("internal error: %v", e),
    			})
    		}
    		if err == nil && len(in.parseErrors) > 0 {
    			err = in.parseErrors
    		}
    	}()
    
    	// Prime the lexer by reading in the first token. It will be available
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. istioctl/pkg/analyze/analyze.go

    					return err
    				}
    			}
    
    			// If files are provided, treat them (collectively) as a source.
    			parseErrors := 0
    			if len(readers) > 0 {
    				if err = sa.AddReaderKubeSource(readers); err != nil {
    					fmt.Fprintf(cmd.ErrOrStderr(), "Error(s) adding files: %v", err)
    					parseErrors++
    				}
    			}
    
    			// Do the analysis
    			result, err := sa.Analyze(cancel)
    			if err != nil {
    				return err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 17K bytes
    - Viewed (0)
  6. src/net/ip.go

    	if !found {
    		return nil, nil, &ParseError{Type: "CIDR address", Text: s}
    	}
    
    	ipAddr, err := netip.ParseAddr(addr)
    	if err != nil || ipAddr.Zone() != "" {
    		return nil, nil, &ParseError{Type: "CIDR address", Text: s}
    	}
    
    	n, i, ok := dtoi(mask)
    	if !ok || i != len(mask) || n < 0 || n > ipAddr.BitLen() {
    		return nil, nil, &ParseError{Type: "CIDR address", Text: s}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top