Documentation ¶
Index ¶
- func RegisterErrCode(code ErrCode, msg string)
- type DefaultErrRep
- type ErrCode
- func (x ErrCode) ErrRep() *ErrRep
- func (x ErrCode) Error() string
- func (x ErrCode) GrpcStatus() *status.Status
- func (x ErrCode) Log(err error) *ErrRep
- func (x ErrCode) MarshalJSON() ([]byte, error)
- func (x ErrCode) Message(msg string) *ErrRep
- func (x ErrCode) Response(w http.ResponseWriter)
- func (x ErrCode) String() string
- func (x ErrCode) Warp(err error) *ErrRep
- type ErrMsg
- type ErrRep
- type GrpcStatus
- type Is
- type Unwrap
- type WarpErrCode
- type WarpErrRep
- type WarpError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterErrCode ¶
Types ¶
type DefaultErrRep ¶
type DefaultErrRep interface {
ErrRep() *ErrRep
}
type ErrCode ¶
type ErrCode uint32
func (ErrCode) MarshalJSON ¶
func (ErrCode) Response ¶
func (x ErrCode) Response(w http.ResponseWriter)
type ErrRep ¶
func (*ErrRep) GrpcStatus ¶
func (*ErrRep) MarshalJSON ¶
func (*ErrRep) Response ¶
func (x *ErrRep) Response(w http.ResponseWriter)
func (*ErrRep) Warp ¶
func (x *ErrRep) Warp(err error) *WarpErrRep
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 WarpErrRep ¶
type WarpErrRep struct { ErrRep // contains filtered or unexported fields }
func (*WarpErrRep) Error ¶
func (e *WarpErrRep) Error() string
func (*WarpErrRep) Unwrap ¶
func (e *WarpErrRep) Unwrap() error
Click to show internal directories.
Click to hide internal directories.