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 type Error func (e Error) Error() string type Op func Ops(err Error) []Op func (o Op) String() string Constants ¶ View Source const ( KindUnknown = iota KindBadRequest KindUnexpected KindAlreadyExists ) Kind enums Variables ¶ This section is empty. Functions ¶ func E ¶ func E(op Op, args ...interface{}) error func Is ¶ func Is(err error, kind int) bool func Kind ¶ func Kind(err error) int func KindText ¶ func KindText(err Error) string Types ¶ type Error ¶ type Error struct { Kind int Op Op Err error } func (Error) Error ¶ func (e Error) Error() string type Op ¶ type Op string func Ops ¶ func Ops(err Error) []Op func (Op) String ¶ func (o Op) String() string Source Files ¶ View all Source files errors.go Click to show internal directories. Click to hide internal directories.