Documentation ¶
Index ¶
- type Errordeprecated
- func From(ec ecode.Codes) *Errordeprecated
- func (e *Error) Code() int
- func (*Error) Descriptor() ([]byte, []int)
- func (e *Error) Details() []interface{}
- func (e *Error) Equal(ec error) bool
- func (e *Error) Error() string
- func (m *Error) GetErrCode() int32
- func (m *Error) GetErrDetail() *any.Any
- func (m *Error) GetErrMessage() string
- func (e *Error) Message() string
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) String() string
- func (m *Error) XXX_DiscardUnknown()
- func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Error) XXX_Merge(src proto.Message)
- func (m *Error) XXX_Size() int
- func (m *Error) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error
deprecated
type Error struct { ErrCode int32 `protobuf:"varint,1,opt,name=err_code,json=errCode,proto3" json:"err_code,omitempty"` ErrMessage string `protobuf:"bytes,2,opt,name=err_message,json=errMessage,proto3" json:"err_message,omitempty"` ErrDetail *any.Any `protobuf:"bytes,3,opt,name=err_detail,json=errDetail,proto3" json:"err_detail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Deprecated: please use ecode.Error
func (*Error) Descriptor ¶
func (*Error) GetErrCode ¶
func (*Error) GetErrDetail ¶
func (*Error) GetErrMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) XXX_DiscardUnknown ¶
func (m *Error) XXX_DiscardUnknown()
func (*Error) XXX_Marshal ¶
func (*Error) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.