Documentation
¶
Overview ¶
Package errors provides convenience functions for Kivik drivers to report meaningful errors. This package is not conisidered part of the kivik public API and is subject to change without notice.
Index ¶
- func Errorf(format string, args ...interface{}) error
- func New(msg string) error
- func Status(status int, msg string) error
- func Statusf(status int, format string, args ...interface{}) error
- func Wrap(err error, msg string) error
- func WrapStatus(status int, err error) error
- func Wrapf(err error, format string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Errorf ¶
Errorf is a wrapper around pkg/errors.Errorf()
func New ¶
New is a wrapper around the standard errors.New, to avoid the need for multiple imports.
func Status ¶
Status returns a new error with the designated HTTP status.
func Statusf ¶
Statusf returns a new error with the designated HTTP status.
func WrapStatus ¶
WrapStatus bundles an existing error with a status code.
Types ¶
This section is empty.
Source Files
¶
- errors.go
- status.go
Click to show internal directories.
Click to hide internal directories.