Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for UnmarshalError (0.16 sec)

  1. src/encoding/xml/marshal_test.go

    					fix.Entry[i].Author.InnerXML = ""
    				}
    			}
    
    			if err != nil {
    				if test.UnmarshalError == "" {
    					t.Errorf("unmarshal(%#v): %s", test.ExpectXML, err)
    					return
    				}
    				if !strings.Contains(err.Error(), test.UnmarshalError) {
    					t.Errorf("unmarshal(%#v): %s, want %q", test.ExpectXML, err, test.UnmarshalError)
    				}
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  2. src/encoding/xml/read.go

    	}
    
    	if val.IsNil() {
    		return errors.New("nil pointer passed to Unmarshal")
    	}
    	return d.unmarshal(val.Elem(), start, 0)
    }
    
    // An UnmarshalError represents an error in the unmarshaling process.
    type UnmarshalError string
    
    func (e UnmarshalError) Error() string { return string(e) }
    
    // Unmarshaler is the interface implemented by objects that can unmarshal
    // an XML element description of themselves.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  3. internal/bucket/object/lock/lock.go

    func (l *ObjectLegalHold) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) {
    	switch start.Name.Local {
    	case "LegalHold", "ObjectLockLegalHold":
    	default:
    		return xml.UnmarshalError(fmt.Sprintf("expected element type <LegalHold>/<ObjectLockLegalHold> but have <%s>",
    			start.Name.Local))
    	}
    	for {
    		// Read tokens from the XML document in a stream.
    		t, err := d.Token()
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/lifecycle.go

    func (lc *Lifecycle) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) {
    	switch start.Name.Local {
    	case "LifecycleConfiguration", "BucketLifecycleConfiguration":
    	default:
    		return xml.UnmarshalError(fmt.Sprintf("expected element type <LifecycleConfiguration>/<BucketLifecycleConfiguration> but have <%s>",
    			start.Name.Local))
    	}
    	for {
    		// Read tokens from the XML document in a stream.
    		t, err := d.Token()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. src/encoding/xml/xml_test.go

    	}
    }
    
    func TestIssue20396(t *testing.T) {
    
    	var attrError = UnmarshalError("XML syntax error on line 1: expected attribute name in element")
    
    	testCases := []struct {
    		s       string
    		wantErr error
    	}{
    		{`<a:te:st xmlns:a="abcd"/>`, // Issue 20396
    			UnmarshalError("XML syntax error on line 1: expected element name after <")},
    		{`<a:te=st xmlns:a="abcd"/>`, attrError},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(Comment).Copy", Method, 0},
    		{"(Directive).Copy", Method, 0},
    		{"(ProcInst).Copy", Method, 0},
    		{"(StartElement).Copy", Method, 0},
    		{"(StartElement).End", Method, 2},
    		{"(UnmarshalError).Error", Method, 0},
    		{"Attr", Type, 0},
    		{"Attr.Name", Field, 0},
    		{"Attr.Value", Field, 0},
    		{"CharData", Type, 0},
    		{"Comment", Type, 0},
    		{"CopyToken", Func, 0},
    		{"Decoder", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  7. api/go1.txt

    pkg encoding/xml, method (Directive) Copy() Directive
    pkg encoding/xml, method (ProcInst) Copy() ProcInst
    pkg encoding/xml, method (StartElement) Copy() StartElement
    pkg encoding/xml, method (UnmarshalError) Error() string
    pkg encoding/xml, type Attr struct
    pkg encoding/xml, type Attr struct, Name Name
    pkg encoding/xml, type Attr struct, Value string
    pkg encoding/xml, type CharData []uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top