Documentation ¶
Index ¶
- Constants
- Variables
- func New(code Code, msg string) error
- func NewAWS(err aws.Error) error
- func NewGormCreate(err error, model string) error
- func NewGormDelete(err error, model string) error
- func NewGormFind(err error, model string) error
- func NewGormSave(err error, model string) error
- func NewGormUpdate(err error, model string) error
- func Newf(code Code, msg string, args ...interface{}) error
- func WithCode(code Code, err error) error
- func Wrap(err error, msg string) error
- func Wrapf(err error, msg string, args ...interface{}) error
- type Code
- type Error
Constants ¶
View Source
const ( CodeInvalid = Code("invalid") CodeNotFound = Code("not found") CodeError = Code("error") )
Variables ¶
View Source
var (
ErrDuplicated = errors.New("duplicated key exists")
)
Functions ¶
func NewGormCreate ¶
func NewGormDelete ¶
func NewGormFind ¶
func NewGormSave ¶
func NewGormUpdate ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.