type encoding/asn1.StructuralError
33 uses
encoding/asn1 (current package)
asn1.go#L39: type StructuralError struct {
asn1.go#L43: func (e StructuralError) Error() string { return "asn1: structure error: " + e.Msg }
asn1.go#L83: return StructuralError{"empty integer"}
asn1.go#L89: return StructuralError{"integer not minimally-encoded"}
asn1.go#L103: err = StructuralError{"integer too large"}
asn1.go#L128: return 0, StructuralError{"integer too large"}
asn1.go#L307: err = StructuralError{"base 128 integer too large"}
asn1.go#L324: err = StructuralError{"base 128 integer too large"}
asn1.go#L608: err = StructuralError{"length too large"}
asn1.go#L615: err = StructuralError{"superfluous leading zeros in length"}
asn1.go#L621: err = StructuralError{"non-minimal length"}
asn1.go#L635: err = StructuralError{"unknown Go type for slice"}
asn1.go#L660: err = StructuralError{"sequence tag mismatch"}
asn1.go#L786: err = StructuralError{"explicit tag has no child"}
asn1.go#L799: err = StructuralError{"zero length explicit tag was not an asn1.Flag"}
asn1.go#L811: err = StructuralError{"explicitly tagged member didn't match"}
asn1.go#L819: err = StructuralError{fmt.Sprintf("unknown Go type: %v", fieldType)}
asn1.go#L887: err = StructuralError{fmt.Sprintf("tags don't match (%d vs %+v) %+v %s @%d", expectedTag, t, params, fieldType.Name(), offset)}
asn1.go#L963: err = StructuralError{"struct contains unexported fields"}
asn1.go#L1032: err = StructuralError{"unsupported: " + v.Type().String()}
marshal.go#L197: return nil, StructuralError{"empty integer"}
marshal.go#L305: return nil, StructuralError{"invalid object identifier"}
marshal.go#L320: return nil, StructuralError{"PrintableString contains invalid character"}
marshal.go#L330: return nil, StructuralError{"IA5String contains invalid character"}
marshal.go#L340: return nil, StructuralError{"NumericString contains invalid character"}
marshal.go#L399: return nil, StructuralError{"cannot represent time as UTCTime"}
marshal.go#L408: return nil, StructuralError{"cannot represent time as GeneralizedTime"}
marshal.go#L489: return nil, StructuralError{"struct contains unexported fields"}
marshal.go#L573: return nil, StructuralError{"unknown Go type"}
marshal.go#L623: return nil, StructuralError{fmt.Sprintf("unknown Go type: %v", v.Type())}
marshal.go#L627: return nil, StructuralError{"explicit time type given to non-time member"}
marshal.go#L631: return nil, StructuralError{"explicit string type given to non-string member"}
marshal.go#L660: return nil, StructuralError{"non sequence tagged as set"}