errors

package
v1.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional int32 code = 1109;
	E_Code = &file_errors_proto_extTypes[1]
	// optional string message = 1110;
	E_Message = &file_errors_proto_extTypes[2]
	// optional string id = 1111;
	E_Id = &file_errors_proto_extTypes[3]
	// repeated errors.Metadata metadata = 1112;
	E_Metadata = &file_errors_proto_extTypes[4]
	// repeated errors.BizReason biz_reason = 1113;
	E_BizReason = &file_errors_proto_extTypes[5]
)

Extension fields to descriptorpb.EnumValueOptions.

View Source
var (
	// optional int32 default_code = 1108;
	E_DefaultCode = &file_errors_proto_extTypes[0]
)

Extension fields to descriptorpb.EnumOptions.

View Source
var File_errors_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BizReason added in v1.0.7

type BizReason struct {
	Reason   string      `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
	Message  string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Metadata []*Metadata `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*BizReason) Descriptor deprecated added in v1.0.7

func (*BizReason) Descriptor() ([]byte, []int)

Deprecated: Use BizReason.ProtoReflect.Descriptor instead.

func (*BizReason) GetMessage added in v1.0.7

func (x *BizReason) GetMessage() string

func (*BizReason) GetMetadata added in v1.0.7

func (x *BizReason) GetMetadata() []*Metadata

func (*BizReason) GetReason added in v1.0.7

func (x *BizReason) GetReason() string

func (*BizReason) ProtoMessage added in v1.0.7

func (*BizReason) ProtoMessage()

func (*BizReason) ProtoReflect added in v1.0.7

func (x *BizReason) ProtoReflect() protoreflect.Message

func (*BizReason) Reset added in v1.0.7

func (x *BizReason) Reset()

func (*BizReason) String added in v1.0.7

func (x *BizReason) String() string

type Error

type Error struct {
	Code     int32             `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Reason   string            `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	Message  string            `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

func (*Error) Descriptor() ([]byte, []int)

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) GetMetadata

func (x *Error) GetMetadata() map[string]string

func (*Error) GetReason

func (x *Error) GetReason() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type Metadata added in v1.0.2

type Metadata struct {
	Key          string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value        string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	DefaultValue string `protobuf:"bytes,3,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"`
	// contains filtered or unexported fields
}

func (*Metadata) Descriptor deprecated added in v1.0.2

func (*Metadata) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetDefaultValue added in v1.0.10

func (x *Metadata) GetDefaultValue() string

func (*Metadata) GetKey added in v1.0.2

func (x *Metadata) GetKey() string

func (*Metadata) GetValue added in v1.0.2

func (x *Metadata) GetValue() string

func (*Metadata) ProtoMessage added in v1.0.2

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect added in v1.0.2

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset added in v1.0.2

func (x *Metadata) Reset()

func (*Metadata) String added in v1.0.2

func (x *Metadata) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL