Versions in this module Expand all Collapse all v1 v1.0.37 Aug 12, 2023 Changes in this version + const ErrCodeInternal + const ErrCodeModuleRoot + const ErrCodeStart + const ErrCodeUnknown + var ErrIntOverflowErr = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthErr = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupErr = fmt.Errorf("proto: unexpected end of group") + type BizError struct + Code int32 + Msg string + func Convert(err error) *BizError + func New(code int32, message string) *BizError + func (be BizError) Error() string + type Error struct + Code int32 + Msg string + func (*Error) Descriptor() ([]byte, []int) + func (*Error) ProtoMessage() + func (m *Error) GetCode() int32 + func (m *Error) GetMsg() string + func (m *Error) Marshal() (dAtA []byte, err error) + func (m *Error) MarshalTo(dAtA []byte) (int, error) + func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Error) Reset() + func (m *Error) Size() (n int) + func (m *Error) String() string + func (m *Error) Unmarshal(dAtA []byte) error + func (m *Error) XXX_DiscardUnknown() + func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Error) XXX_Merge(src proto.Message) + func (m *Error) XXX_Size() int + func (m *Error) XXX_Unmarshal(b []byte) error