Error is the generic error returned from unary RPCs.
type Error struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // This is to make the error more compatible with users that expect errors to be Status objects: // https://github.com/grpc/grpc/blob/master/src/proto/grpc/status/status.proto // It should be the exact same message as the Error field. Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Details []*any.Any `protobuf:"bytes,4,rep,name=details,proto3" json:"details,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Error) Descriptor() ([]byte, []int)
func (m *Error) GetCode() int32
func (m *Error) GetDetails() []*any.Any
func (m *Error) GetError() string
func (m *Error) GetMessage() string
func (*Error) ProtoMessage()
func (m *Error) Reset()
func (m *Error) String() string
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
StreamError is a response type which is returned when streaming rpc returns an error.
type StreamError struct { GrpcCode int32 `protobuf:"varint,1,opt,name=grpc_code,json=grpcCode,proto3" json:"grpc_code,omitempty"` HttpCode int32 `protobuf:"varint,2,opt,name=http_code,json=httpCode,proto3" json:"http_code,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` HttpStatus string `protobuf:"bytes,4,opt,name=http_status,json=httpStatus,proto3" json:"http_status,omitempty"` Details []*any.Any `protobuf:"bytes,5,rep,name=details,proto3" json:"details,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StreamError) Descriptor() ([]byte, []int)
func (m *StreamError) GetDetails() []*any.Any
func (m *StreamError) GetGrpcCode() int32
func (m *StreamError) GetHttpCode() int32
func (m *StreamError) GetHttpStatus() string
func (m *StreamError) GetMessage() string
func (*StreamError) ProtoMessage()
func (m *StreamError) Reset()
func (m *StreamError) String() string
func (m *StreamError) XXX_DiscardUnknown()
func (m *StreamError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *StreamError) XXX_Merge(src proto.Message)
func (m *StreamError) XXX_Size() int
func (m *StreamError) XXX_Unmarshal(b []byte) error
Name | Synopsis |
---|---|
.. |