Help us shape the future of Go! Take the 2026 Go Developer Survey

errors

package
v0.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use ApiError.ProtoReflect.Descriptor instead.

func (*ApiError) GetApiError

func (x *ApiError) GetApiError() *api.Error

func (*ApiError) GetStatus

func (x *ApiError) GetStatus() int32

func (*ApiError) ProtoMessage

func (*ApiError) ProtoMessage()

func (*ApiError) ProtoReflect

func (x *ApiError) ProtoReflect() protoreflect.Message

func (*ApiError) Reset

func (x *ApiError) Reset()

func (*ApiError) String

func (x *ApiError) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Err.ProtoReflect.Descriptor instead.

func (*Err) GetCode

func (x *Err) GetCode() uint32

func (*Err) GetErr

func (x *Err) GetErr() *Err

func (*Err) GetMsg

func (x *Err) GetMsg() string

func (*Err) GetNone

func (x *Err) GetNone() bool

func (*Err) GetOp

func (x *Err) GetOp() string

func (*Err) GetStdError

func (x *Err) GetStdError() string

func (*Err) GetWrapped

func (m *Err) GetWrapped() isErr_Wrapped

func (*Err) ProtoMessage

func (*Err) ProtoMessage()

func (*Err) ProtoReflect

func (x *Err) ProtoReflect() protoreflect.Message

func (*Err) Reset

func (x *Err) Reset()

func (*Err) String

func (x *Err) String() string

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL