Versions in this module Expand all Collapse all v1 v1.0.1 Jul 26, 2024 v1.0.0 Jul 26, 2024 Changes in this version + func Is(err, target error) bool + func IsStatus(err error, status int) bool + func RequestError(err error, code int) error + func ResponseError(err error, code int) error + type AppError interface + AddData func(field string, data interface{}) AppError + BadRequest func() AppError + Code func() int + Error func() string + Errorf func(format string, args ...interface{}) AppError + Format func(s fmt.State, v rune) + FormatError func(p xerrors.Printer) error + InternalServerError func() AppError + Is func(err error) bool + IsStatus func(status int) bool + New func(msg ...string) AppError + NotFound func() AppError + Status func() int + Unauthorized func() AppError + Unwrap func() error + Wrap func(err error, msg ...string) AppError + func AsAppError(err error) AppError + func BadRequestf(format string, args ...any) AppError + func Errorf(format string, args ...interface{}) AppError + func Forbiddenf(format string, args ...interface{}) AppError + func New(msg string) AppError + func NotFoundf(format string, args ...interface{}) AppError + func Wrap(err error, msg ...string) AppError