Documentation ¶
Overview ¶
err package define the register of business errors
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrEqualCode ¶
IsCodeEqual reports whether the err's code equal the target code
Types ¶
type Error ¶
type Error struct { Code int32 `json:"errorCode,string"` Message string `json:"errorMessage"` Detail string `json:"detail,omitempty"` }
func (*Error) InternalError ¶
func (*Error) StatusCode ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) MustRegister ¶
func (*Manager) MustRegisterMap ¶
Click to show internal directories.
Click to hide internal directories.