Versions in this module Expand all Collapse all v1 v1.2.0 Sep 13, 2024 Changes in this version + type ServiceError struct + Code int + Err error + Kind int + func Wrap(err error, kind int, code int) *ServiceError + func (c *ServiceError) Error() string + func (c *ServiceError) Unwrap() error v1.1.0 Sep 13, 2024 Changes in this version + const BadRequest + const Internal + const InternalKind + const NotFound + const SystemKind + const Unauthorized + const UserKind + var ErrInvalidPassword = errors.New("invalid password") + func Catch(ctx context.Context, err error) error + func WrapCtx(ctx context.Context, err error) error + type CustomError struct + Code int + Err error + Kind int + func New(err error, kind int, code int) *CustomError + func (c *CustomError) Error() string + func (c *CustomError) Unwrap() error