{"modulePath":"github.com/interspace/errors","version":"v1.2.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errorspb\n\n## Variables\n\n```go\nvar (\n\tErrInvalidLengthErrors = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowErrors   = fmt.Errorf(\"proto: integer overflow\")\n)\n```\n\n```go\nvar (\n\tErrInvalidLengthHintdetail = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowHintdetail   = fmt.Errorf(\"proto: integer overflow\")\n)\n```\n\n```go\nvar (\n\tErrInvalidLengthMarkers = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowMarkers   = fmt.Errorf(\"proto: integer overflow\")\n)\n```\n\n```go\nvar (\n\tErrInvalidLengthTags = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowTags   = fmt.Errorf(\"proto: integer overflow\")\n)\n```\n\n```go\nvar (\n\tErrInvalidLengthTesting = fmt.Errorf(\"proto: negative length found during unmarshaling\")\n\tErrIntOverflowTesting   = fmt.Errorf(\"proto: integer overflow\")\n)\n```\n\n## Types\n\n```go\ntype EncodedError struct {\n\t// Types that are valid to be assigned to Error:\n\t//\t*EncodedError_Leaf\n\t//\t*EncodedError_Wrapper\n\tError                isEncodedError_Error `protobuf_oneof:\"error\"`\n\tXXX_NoUnkeyedLiteral struct{}             `json:\"-\"`\n\tXXX_sizecache        int32                `json:\"-\"`\n}\n```\nEncodedError is the wire-encodable representation of an error (or error cause chain).\n\n```go\nfunc (*EncodedError) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *EncodedError) GetError() isEncodedError_Error\n```\n\n```go\nfunc (m *EncodedError) GetLeaf() *EncodedErrorLeaf\n```\n\n```go\nfunc (m *EncodedError) GetWrapper() *EncodedWrapper\n```\n\n```go\nfunc (m *EncodedError) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *EncodedError) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*EncodedError) ProtoMessage()\n```\n\n```go\nfunc (m *EncodedError) Reset()\n```\n\n```go\nfunc (m *EncodedError) Size() (n int)\n```\n\n```go\nfunc (m *EncodedError) String() string\n```\n\n```go\nfunc (m *EncodedError) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *EncodedError) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *EncodedError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *EncodedError) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (*EncodedError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})\n```\nXXX\\_OneofFuncs is for the internal use of the proto package.\n\n```go\nfunc (m *EncodedError) XXX_Size() int\n```\n\n```go\nfunc (m *EncodedError) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype EncodedErrorDetails struct {\n\t// The original fully qualified error type name (mandatory).\n\t// This is primarily used to print out error details\n\t// in error reports and Format().\n\t//\n\t// It is additionally used to populate the error mark\n\t// below when the family name is not known/set.\n\t// See the `markers` error package and the\n\t// RFC on error handling for details.\n\tOriginalTypeName string `protobuf:\"bytes,1,opt,name=original_type_name,json=originalTypeName,proto3\" json:\"original_type_name,omitempty\"`\n\t// The error mark. This is used to determine error equivalence and\n\t// identifying a decode function.\n\t// See the `markers` error package and the\n\t// RFC on error handling for details.\n\tErrorTypeMark ErrorTypeMark `protobuf:\"bytes,2,opt,name=error_type_mark,json=errorTypeMark,proto3\" json:\"error_type_mark\"`\n\t// The reportable payload (optional), which is as descriptive as\n\t// possible but may not contain PII.\n\t//\n\t// This is extracted automatically using a registered encoder, if\n\t// any, or the SafeDetailer interface.\n\tReportablePayload []string `protobuf:\"bytes,3,rep,name=reportable_payload,json=reportablePayload,proto3\" json:\"reportable_payload,omitempty\"`\n\t// An arbitrary payload that (presumably) encodes the\n\t// native error object. This is also optional.\n\t//\n\t// This is extracted automatically using a registered encoder, if\n\t// any.\n\tFullDetails          *types.Any `protobuf:\"bytes,4,opt,name=full_details,json=fullDetails,proto3\" json:\"full_details,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{}   `json:\"-\"`\n\tXXX_sizecache        int32      `json:\"-\"`\n}\n```\n\n```go\nfunc (*EncodedErrorDetails) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *EncodedErrorDetails) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *EncodedErrorDetails) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*EncodedErrorDetails) ProtoMessage()\n```\n\n```go\nfunc (m *EncodedErrorDetails) Reset()\n```\n\n```go\nfunc (m *EncodedErrorDetails) Size() (n int)\n```\n\n```go\nfunc (m *EncodedErrorDetails) String() string\n```\n\n```go\nfunc (m *EncodedErrorDetails) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *EncodedErrorDetails) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *EncodedErrorDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *EncodedErrorDetails) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *EncodedErrorDetails) XXX_Size() int\n```\n\n```go\nfunc (m *EncodedErrorDetails) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype EncodedErrorLeaf struct {\n\t// The main error message (mandatory), that can be printed to human\n\t// users and may contain PII. This contains the value of the leaf\n\t// error's Error(), or using a registered encoder.\n\tMessage string `protobuf:\"bytes,1,opt,name=message,proto3\" json:\"message,omitempty\"`\n\t// The error details.\n\tDetails              EncodedErrorDetails `protobuf:\"bytes,2,opt,name=details,proto3\" json:\"details\"`\n\tXXX_NoUnkeyedLiteral struct{}            `json:\"-\"`\n\tXXX_sizecache        int32               `json:\"-\"`\n}\n```\nEncodedErrorLeaf is the wire-encodable representation of an error leaf.\n\n```go\nfunc (*EncodedErrorLeaf) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *EncodedErrorLeaf) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *EncodedErrorLeaf) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*EncodedErrorLeaf) ProtoMessage()\n```\n\n```go\nfunc (m *EncodedErrorLeaf) Reset()\n```\n\n```go\nfunc (m *EncodedErrorLeaf) Size() (n int)\n```\n\n```go\nfunc (m *EncodedErrorLeaf) String() string\n```\n\n```go\nfunc (m *EncodedErrorLeaf) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *EncodedErrorLeaf) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *EncodedErrorLeaf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *EncodedErrorLeaf) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *EncodedErrorLeaf) XXX_Size() int\n```\n\n```go\nfunc (m *EncodedErrorLeaf) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype EncodedError_Leaf struct {\n\tLeaf *EncodedErrorLeaf `protobuf:\"bytes,1,opt,name=leaf,proto3,oneof\"`\n}\n```\n\n```go\nfunc (m *EncodedError_Leaf) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *EncodedError_Leaf) Size() (n int)\n```\n\n```go\ntype EncodedError_Wrapper struct {\n\tWrapper *EncodedWrapper `protobuf:\"bytes,2,opt,name=wrapper,proto3,oneof\"`\n}\n```\n\n```go\nfunc (m *EncodedError_Wrapper) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (m *EncodedError_Wrapper) Size() (n int)\n```\n\n```go\ntype EncodedWrapper struct {\n\t// The cause error. Mandatory.\n\tCause EncodedError `protobuf:\"bytes,1,opt,name=cause,proto3\" json:\"cause\"`\n\t// The wrapper message prefix (which may be empty). This\n\t// isbprinted before the cause's own message when\n\t// constructing a full message. This may contain PII.\n\t//\n\t// This is extracted automatically:\n\t//\n\t// - for wrappers that have a registered encoder,\n\t// - otherwise, when the wrapper's Error() has its cause's Error() as suffix.\n\tMessagePrefix string `protobuf:\"bytes,2,opt,name=message_prefix,json=messagePrefix,proto3\" json:\"message_prefix,omitempty\"`\n\t// The error details.\n\tDetails              EncodedErrorDetails `protobuf:\"bytes,3,opt,name=details,proto3\" json:\"details\"`\n\tXXX_NoUnkeyedLiteral struct{}            `json:\"-\"`\n\tXXX_sizecache        int32               `json:\"-\"`\n}\n```\nEncodedWrapper is the wire-encodable representation of an error wrapper.\n\n```go\nfunc (*EncodedWrapper) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *EncodedWrapper) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *EncodedWrapper) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*EncodedWrapper) ProtoMessage()\n```\n\n```go\nfunc (m *EncodedWrapper) Reset()\n```\n\n```go\nfunc (m *EncodedWrapper) Size() (n int)\n```\n\n```go\nfunc (m *EncodedWrapper) String() string\n```\n\n```go\nfunc (m *EncodedWrapper) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *EncodedWrapper) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *EncodedWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *EncodedWrapper) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *EncodedWrapper) XXX_Size() int\n```\n\n```go\nfunc (m *EncodedWrapper) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype ErrorTypeMark struct {\n\t// The family name identifies the error type.\n\t// This is equal to original_type_name above in the common case, but\n\t// can be overridden when e.g. the package that defines the type\n\t// changes path.\n\t// This is the field also used for looking up a decode function.\n\tFamilyName string `protobuf:\"bytes,1,opt,name=family_name,json=familyName,proto3\" json:\"family_name,omitempty\"`\n\t// This marker string is used in combination with\n\t// the family name for the purpose of determining error equivalence.\n\t// This can be used to separate error instances that have the same type\n\t// into separate equivalence classes.\n\t// See the `markers` error package and the\n\t// RFC on error handling for details.\n\tExtension            string   `protobuf:\"bytes,2,opt,name=extension,proto3\" json:\"extension,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nErrorTypeMark identifies an error type for the purpose of determining error equivalences and looking up decoder functions.\n\n```go\nfunc (*ErrorTypeMark) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m ErrorTypeMark) Equals(o ErrorTypeMark) bool\n```\n\n```go\nfunc (m *ErrorTypeMark) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *ErrorTypeMark) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*ErrorTypeMark) ProtoMessage()\n```\n\n```go\nfunc (m *ErrorTypeMark) Reset()\n```\n\n```go\nfunc (m *ErrorTypeMark) Size() (n int)\n```\n\n```go\nfunc (m *ErrorTypeMark) String() string\n```\n\n```go\nfunc (m *ErrorTypeMark) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *ErrorTypeMark) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *ErrorTypeMark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *ErrorTypeMark) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *ErrorTypeMark) XXX_Size() int\n```\n\n```go\nfunc (m *ErrorTypeMark) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype MarkPayload struct {\n\tMsg                  string          `protobuf:\"bytes,1,opt,name=msg,proto3\" json:\"msg,omitempty\"`\n\tTypes                []ErrorTypeMark `protobuf:\"bytes,2,rep,name=types,proto3\" json:\"types\"`\n\tXXX_NoUnkeyedLiteral struct{}        `json:\"-\"`\n\tXXX_sizecache        int32           `json:\"-\"`\n}\n```\nMarkPayload is the error payload for a forced marker. See errors/markers/markers.go and the RFC on error handling for details.\n\n```go\nfunc (*MarkPayload) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *MarkPayload) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *MarkPayload) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*MarkPayload) ProtoMessage()\n```\n\n```go\nfunc (m *MarkPayload) Reset()\n```\n\n```go\nfunc (m *MarkPayload) Size() (n int)\n```\n\n```go\nfunc (m *MarkPayload) String() string\n```\n\n```go\nfunc (m *MarkPayload) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *MarkPayload) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *MarkPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *MarkPayload) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *MarkPayload) XXX_Size() int\n```\n\n```go\nfunc (m *MarkPayload) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype StringPayload struct {\n\tMsg                  string   `protobuf:\"bytes,1,opt,name=msg,proto3\" json:\"msg,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\n\n```go\nfunc (*StringPayload) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *StringPayload) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *StringPayload) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*StringPayload) ProtoMessage()\n```\n\n```go\nfunc (m *StringPayload) Reset()\n```\n\n```go\nfunc (m *StringPayload) Size() (n int)\n```\n\n```go\nfunc (m *StringPayload) String() string\n```\n\n```go\nfunc (m *StringPayload) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *StringPayload) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *StringPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *StringPayload) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *StringPayload) XXX_Size() int\n```\n\n```go\nfunc (m *StringPayload) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype TagPayload struct {\n\tTag                  string   `protobuf:\"bytes,1,opt,name=tag,proto3\" json:\"tag,omitempty\"`\n\tValue                string   `protobuf:\"bytes,2,opt,name=value,proto3\" json:\"value,omitempty\"`\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\n\n```go\nfunc (*TagPayload) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *TagPayload) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *TagPayload) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*TagPayload) ProtoMessage()\n```\n\n```go\nfunc (m *TagPayload) Reset()\n```\n\n```go\nfunc (m *TagPayload) Size() (n int)\n```\n\n```go\nfunc (m *TagPayload) String() string\n```\n\n```go\nfunc (m *TagPayload) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *TagPayload) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *TagPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *TagPayload) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *TagPayload) XXX_Size() int\n```\n\n```go\nfunc (m *TagPayload) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype TagsPayload struct {\n\tTags                 []TagPayload `protobuf:\"bytes,1,rep,name=tags,proto3\" json:\"tags\"`\n\tXXX_NoUnkeyedLiteral struct{}     `json:\"-\"`\n\tXXX_sizecache        int32        `json:\"-\"`\n}\n```\nTagsPayload is the error payload for a WithContext marker. See errors/contexttags/withcontext.go and the RFC on error handling for details.\n\n```go\nfunc (*TagsPayload) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (m *TagsPayload) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *TagsPayload) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*TagsPayload) ProtoMessage()\n```\n\n```go\nfunc (m *TagsPayload) Reset()\n```\n\n```go\nfunc (m *TagsPayload) Size() (n int)\n```\n\n```go\nfunc (m *TagsPayload) String() string\n```\n\n```go\nfunc (m *TagsPayload) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *TagsPayload) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *TagsPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *TagsPayload) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *TagsPayload) XXX_Size() int\n```\n\n```go\nfunc (m *TagsPayload) XXX_Unmarshal(b []byte) error\n```\n\n```go\ntype TestError struct {\n\tXXX_NoUnkeyedLiteral struct{} `json:\"-\"`\n\tXXX_sizecache        int32    `json:\"-\"`\n}\n```\nTestError is meant for use in testing only.\n\n```go\nfunc (*TestError) Descriptor() ([]byte, []int)\n```\n\n```go\nfunc (t *TestError) Error() string\n```\nError implements the error interface.\n\n```go\nfunc (m *TestError) Marshal() (dAtA []byte, err error)\n```\n\n```go\nfunc (m *TestError) MarshalTo(dAtA []byte) (int, error)\n```\n\n```go\nfunc (*TestError) ProtoMessage()\n```\n\n```go\nfunc (m *TestError) Reset()\n```\n\n```go\nfunc (m *TestError) Size() (n int)\n```\n\n```go\nfunc (m *TestError) String() string\n```\n\n```go\nfunc (m *TestError) Unmarshal(dAtA []byte) error\n```\n\n```go\nfunc (m *TestError) XXX_DiscardUnknown()\n```\n\n```go\nfunc (m *TestError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)\n```\n\n```go\nfunc (m *TestError) XXX_Merge(src proto.Message)\n```\n\n```go\nfunc (m *TestError) XXX_Size() int\n```\n\n```go\nfunc (m *TestError) XXX_Unmarshal(b []byte) error\n```\n\n","path":"github.com/interspace/errors/errorspb","name":"errorspb","synopsis":"","isRedistributable":true}
