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) GRPCStatus ¶ added in v0.0.28
example 实现
type ErrRep ¶
func (*ErrRep) GRPCStatus ¶ added in v0.0.28
func (*ErrRep) MarshalJSON ¶
func (*ErrRep) Wrap ¶ added in v0.0.27
func (x *ErrRep) Wrap(err error) *WrapErrRep
type GRPCStatus ¶ added in v0.0.28
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 ¶ added in v0.0.27
type WrapErrRep struct { ErrRep // contains filtered or unexported fields }
func (*WrapErrRep) Error ¶ added in v0.0.27
func (e *WrapErrRep) Error() string
func (*WrapErrRep) Unwrap ¶ added in v0.0.27
func (e *WrapErrRep) Unwrap() error
Click to show internal directories.
Click to hide internal directories.