Documentation ¶
Index ¶
- Variables
- func AsError[Code constraints.Integer](err *Error) *command.Err[Code]
- type Error
- func (err *Error) AsError() *command.Err[int]
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetCode() int64
- func (x *Error) GetDetails() []*ErrorDetail
- func (x *Error) GetMessage() string
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
- type ErrorDetail
- func (detail *ErrorDetail) AsErrorDetail() *command.ErrDetail
- func (*ErrorDetail) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorDetail) GetDetail() *anypb.Any
- func (*ErrorDetail) ProtoMessage()
- func (x *ErrorDetail) ProtoReflect() protoreflect.Message
- func (x *ErrorDetail) Reset()
- func (x *ErrorDetail) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_goes_command_error_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Error ¶
type Error struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Details []*ErrorDetail `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetDetails ¶
func (x *Error) GetDetails() []*ErrorDetail
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type ErrorDetail ¶
type ErrorDetail struct { Detail *anypb.Any `protobuf:"bytes,1,opt,name=detail,proto3" json:"detail,omitempty"` // contains filtered or unexported fields }
func NewErrorDetail ¶
func NewErrorDetail(detail *command.ErrDetail) *ErrorDetail
func (*ErrorDetail) AsErrorDetail ¶
func (detail *ErrorDetail) AsErrorDetail() *command.ErrDetail
func (*ErrorDetail) Descriptor
deprecated
func (*ErrorDetail) Descriptor() ([]byte, []int)
Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead.
func (*ErrorDetail) GetDetail ¶
func (x *ErrorDetail) GetDetail() *anypb.Any
func (*ErrorDetail) ProtoMessage ¶
func (*ErrorDetail) ProtoMessage()
func (*ErrorDetail) ProtoReflect ¶
func (x *ErrorDetail) ProtoReflect() protoreflect.Message
func (*ErrorDetail) Reset ¶
func (x *ErrorDetail) Reset()
func (*ErrorDetail) String ¶
func (x *ErrorDetail) String() string
Click to show internal directories.
Click to hide internal directories.