type encoding/asn1.StructuralError
33 uses
encoding/asn1 (current package)
asn1.go#L36: type StructuralError struct {
asn1.go#L40: func (e StructuralError) Error() string { return "asn1: structure error: " + e.Msg }
asn1.go#L80: return StructuralError{"empty integer"}
asn1.go#L86: return StructuralError{"integer not minimally-encoded"}
asn1.go#L100: err = StructuralError{"integer too large"}
asn1.go#L125: return 0, StructuralError{"integer too large"}
asn1.go#L311: err = StructuralError{"base 128 integer too large"}
asn1.go#L328: err = StructuralError{"base 128 integer too large"}
asn1.go#L581: err = StructuralError{"length too large"}
asn1.go#L588: err = StructuralError{"superfluous leading zeros in length"}
asn1.go#L594: err = StructuralError{"non-minimal length"}
asn1.go#L608: err = StructuralError{"unknown Go type for slice"}
asn1.go#L633: err = StructuralError{"sequence tag mismatch"}
asn1.go#L750: err = StructuralError{"explicit tag has no child"}
asn1.go#L763: err = StructuralError{"zero length explicit tag was not an asn1.Flag"}
asn1.go#L775: err = StructuralError{"explicitly tagged member didn't match"}
asn1.go#L783: err = StructuralError{fmt.Sprintf("unknown Go type: %v", fieldType)}
asn1.go#L842: err = StructuralError{fmt.Sprintf("tags don't match (%d vs %+v) %+v %s @%d", expectedTag, t, params, fieldType.Name(), offset)}
asn1.go#L918: err = StructuralError{"struct contains unexported fields"}
asn1.go#L987: err = StructuralError{"unsupported: " + v.Type().String()}
marshal.go#L199: return nil, StructuralError{"empty integer"}
marshal.go#L307: return nil, StructuralError{"invalid object identifier"}
marshal.go#L322: return nil, StructuralError{"PrintableString contains invalid character"}
marshal.go#L332: return nil, StructuralError{"IA5String contains invalid character"}
marshal.go#L342: return nil, StructuralError{"NumericString contains invalid character"}
marshal.go#L402: return nil, StructuralError{"cannot represent time as UTCTime"}
marshal.go#L411: return nil, StructuralError{"cannot represent time as GeneralizedTime"}
marshal.go#L492: return nil, StructuralError{"struct contains unexported fields"}
marshal.go#L576: return nil, StructuralError{"unknown Go type"}
marshal.go#L626: return nil, StructuralError{fmt.Sprintf("unknown Go type: %v", v.Type())}
marshal.go#L630: return nil, StructuralError{"explicit time type given to non-time member"}
marshal.go#L634: return nil, StructuralError{"explicit string type given to non-string member"}
marshal.go#L663: return nil, StructuralError{"non sequence tagged as set"}