Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrCode ¶
type ErrCode uint32
const ( // SysErr ErrCode = -1 Success ErrCode = 0 Canceled ErrCode = 1 Unknown ErrCode = 2 InvalidArgument ErrCode = 3 DeadlineExceeded ErrCode = 4 NotFound ErrCode = 5 AlreadyExists ErrCode = 6 PermissionDenied ErrCode = 7 ResourceExhausted ErrCode = 8 FailedPrecondition ErrCode = 9 Aborted ErrCode = 10 OutOfRange ErrCode = 11 Unimplemented ErrCode = 12 Internal ErrCode = 13 DataLoss ErrCode = 15 Unauthenticated ErrCode = 16 )
func (ErrCode) WithHttpStatus ¶
type ErrRep ¶
func ErrRepFrom ¶
func (*ErrRep) GRPCStatus ¶
func (*ErrRep) MarshalJSON ¶
func (*ErrRep) Wrap ¶
func (x *ErrRep) Wrap(err error) *WrapErrRep
type GRPCStatus ¶
type WarpErrCode ¶
type WarpErrCode struct {
ErrCode
// contains filtered or unexported fields
}
func (*WarpErrCode) Error ¶
func (x *WarpErrCode) Error() string
func (*WarpErrCode) Unwrap ¶
func (x *WarpErrCode) Unwrap() error
type WrapErrRep ¶
type WrapErrRep struct {
ErrRep
// contains filtered or unexported fields
}
func (*WrapErrRep) Error ¶
func (e *WrapErrRep) Error() string
func (*WrapErrRep) Unwrap ¶
func (e *WrapErrRep) Unwrap() error
Click to show internal directories.
Click to hide internal directories.