Documentation ¶
Index ¶
- Variables
- type Status
- func (*Status) Descriptor() ([]byte, []int)deprecated
- func (x *Status) GetCode() int32
- func (x *Status) GetDetails() []*anypb.Any
- func (x *Status) GetMessage() string
- func (*Status) ProtoMessage()
- func (x *Status) ProtoReflect() protoreflect.Message
- func (x *Status) Reset()
- func (x *Status) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
Functions ¶
This section is empty.
Types ¶
type Status ¶
type Status struct { // A simple error code that can be easily handled by the client. The // actual error code is defined by `google.rpc.Code`. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // A developer-facing human-readable error message in English. It should // both explain the error and offer an actionable resolution to it. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Additional error information that the client code can use to handle // the error, such as retry info or a help link. Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.