Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromFile ¶
LoadFromFile load errors from yaml file
Types ¶
type DefaultRestAPIError ¶
type DefaultRestAPIError struct {
ErrCode string `json:"err_code,omitempty"`
ErrMsg string `json:"err_msg,omitempty"`
ErrDesc string `json:"err_desc,omitempty"`
}
DefaultRestAPIError default RestAPIError impl
func (DefaultRestAPIError) Code ¶
func (ie DefaultRestAPIError) Code() string
Code get error code for rae
func (DefaultRestAPIError) Desc ¶
func (ie DefaultRestAPIError) Desc() string
Desc get description for rae
func (*DefaultRestAPIError) Set ¶
func (ie *DefaultRestAPIError) Set(code, msg, desc string)
Set set error value for rae
Click to show internal directories.
Click to hide internal directories.