Documentation
¶
Index ¶
- Variables
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetCode() string
- func (x *Error) GetDetails() []*anypb.Any
- func (x *Error) GetMessage() string
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_connect_error_v1_error_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// Code is a Connect code, sent in lower_snake_case (as they are in the
// protocol specification). Regardless of the values of message and detail,
// an Error with an empty code must be treated as a success.
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
// Message is a developer-facing, English description of the error. Localize
// error message in the details or client-side.
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// Details are an optional mechanism for adding strongly-typed annotations to
// an Error.
Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
// contains filtered or unexported fields
}
func (*Error) Descriptor
deprecated
func (*Error) GetDetails ¶
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.