Documentation
¶
Index ¶
- func As(err error, target interface{}) bool
- func BadRequest(message string) error
- func GetCode(err error) int
- func InternalServerError(message string) error
- func Is(err, target error) bool
- func Join(errs ...error) error
- func New(message string) error
- func NewHttpError(code int, format string, args ...interface{}) error
- func Newf(format string, args ...interface{}) error
- func NotFound(message string) error
- func WithCode(code int, message string) error
- func WithCodef(code int, format string, args ...interface{}) error
- func WithMessage(err error, message string) error
- func WithMessagef(err error, format string, args ...interface{}) error
- func Wrap(err error, message string) error
- func Wrapf(err error, format string, args ...interface{}) error
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func InternalServerError ¶
func NewHttpError ¶
func WithMessage ¶
func WithMessagef ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.