Documentation ¶
Index ¶
- Constants
- func E(op Op, args ...interface{}) error
- func Is(err error, kind int) bool
- func Kind(err error) int
- func KindText(err error) string
- func Level(err error) log.Level
- func Msg(err error) string
- func New(msg string) error
- func Ops(err error) []string
- func Stacktrace(err error) [][3]string
- type Op
Constants ¶
View Source
const ( // KindBadRequest is a kind. KindBadRequest = http.StatusBadRequest KindUnauthorized = http.StatusUnauthorized // KindForbidden is a kind. KindForbidden = http.StatusForbidden // KindNotFound is a kind. KindNotFound = http.StatusNotFound // KindUnexpected is a kind. KindUnexpected = http.StatusInternalServerError )
Variables ¶
This section is empty.
Functions ¶
func Stacktrace ¶
Stacktrace returns an array of stacktrace tupples that inclues function, file and line.
Types ¶
Click to show internal directories.
Click to hide internal directories.