Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_transport_status_error_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { // HTTP status code. Corresponds to the HTTP status code returned by the backend server. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // HTTP status message or gRPC status message. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Additional details about the error. Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
func FromGRPC ¶
func FromGRPC(status *grpcStatus.Status) *Error
func FromHTTPCode ¶
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.