Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for UnsupportedTypeError (0.17 sec)

  1. src/encoding/xml/marshal.go

    			return err
    		}
    	}
    	s.stack = append(s.stack, parents...)
    	return nil
    }
    
    // UnsupportedTypeError is returned when [Marshal] encounters a type
    // that cannot be converted into XML.
    type UnsupportedTypeError struct {
    	Type reflect.Type
    }
    
    func (e *UnsupportedTypeError) Error() string {
    	return "xml: unsupported type: " + e.Type.String()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  2. src/encoding/json/encode.go

    // can marshal themselves into valid JSON.
    type Marshaler interface {
    	MarshalJSON() ([]byte, error)
    }
    
    // An UnsupportedTypeError is returned by [Marshal] when attempting
    // to encode an unsupported value type.
    type UnsupportedTypeError struct {
    	Type reflect.Type
    }
    
    func (e *UnsupportedTypeError) Error() string {
    	return "json: unsupported type: " + e.Type.String()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
Back to top