Documentation ¶
Index ¶
- Variables
- type ApiError
- type Err
- func (*Err) Descriptor() ([]byte, []int)deprecated
- func (x *Err) GetCode() uint32
- func (x *Err) GetErr() *Err
- func (x *Err) GetMsg() string
- func (x *Err) GetNone() bool
- func (x *Err) GetOp() string
- func (x *Err) GetStdError() string
- func (m *Err) GetWrapped() isErr_Wrapped
- func (*Err) ProtoMessage()
- func (x *Err) ProtoReflect() protoreflect.Message
- func (x *Err) Reset()
- func (x *Err) String() string
- type Err_Err
- type Err_None
- type Err_StdError
Constants ¶
This section is empty.
Variables ¶
View Source
var File_errors_v1_errors_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
type ApiError struct { // api_error is the controller ApiError ApiError *api.Error `protobuf:"bytes,10,opt,name=api_error,json=apiError,proto3" json:"api_error,omitempty"` // status is the status code assocatiated with the api error Status int32 `protobuf:"varint,20,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
ApiError is a protobuf representation of a controller ApiError
func (*ApiError) Descriptor
deprecated
func (*ApiError) GetApiError ¶
func (*ApiError) ProtoMessage ¶
func (*ApiError) ProtoMessage()
func (*ApiError) ProtoReflect ¶
func (x *ApiError) ProtoReflect() protoreflect.Message
type Err ¶
type Err struct { // code is the error's code, which can be used to get the error's // errorCodeInfo, which contains the error's Kind and Message Code uint32 `protobuf:"varint,10,opt,name=code,proto3" json:"code,omitempty"` // msg for the error Msg string `protobuf:"bytes,20,opt,name=msg,proto3" json:"msg,omitempty"` // op represents the operation raising/propagating an error and is optional. Op string `protobuf:"bytes,30,opt,name=op,proto3" json:"op,omitempty"` // wrapped represents an optionally wrapped error // // Types that are assignable to Wrapped: // // *Err_Err // *Err_StdError // *Err_None Wrapped isErr_Wrapped `protobuf_oneof:"wrapped"` // contains filtered or unexported fields }
Err is a protobuf representation of a domain error
func (*Err) Descriptor
deprecated
func (*Err) GetStdError ¶
func (*Err) GetWrapped ¶
func (m *Err) GetWrapped() isErr_Wrapped
func (*Err) ProtoMessage ¶
func (*Err) ProtoMessage()
func (*Err) ProtoReflect ¶
func (x *Err) ProtoReflect() protoreflect.Message
type Err_Err ¶
type Err_Err struct { // err is a wrapped Err (aka a domain error) Err *Err `protobuf:"bytes,40,opt,name=err,proto3,oneof"` }
type Err_None ¶
type Err_None struct { // no error or err is wrapped None bool `protobuf:"varint,60,opt,name=none,proto3,oneof"` }
type Err_StdError ¶
type Err_StdError struct { // std_error is a wrapped std error StdError string `protobuf:"bytes,50,opt,name=std_error,json=stdError,proto3,oneof"` }
Click to show internal directories.
Click to hide internal directories.