Versions in this module Expand all Collapse all v0 v0.6.1 Oct 22, 2020 v0.6.0 Apr 25, 2020 Changes in this version + func HTTPErrorResponse(w http.ResponseWriter, logger zerolog.Logger, err error) v0.5.1 Apr 24, 2020 v0.5.0 Apr 24, 2020 v0.4.1 Mar 29, 2020 v0.4.0 Mar 28, 2020 Changes in this version type Kind + const Unauthenticated + const Unauthorized v0.3.1 Feb 19, 2020 v0.3.0 Feb 19, 2020 v0.2.1 Feb 6, 2020 v0.2.0 Jan 19, 2020 Changes in this version type Error + StripError bool v0.1.0 Nov 25, 2019 Changes in this version + const Separator + func E(args ...interface{}) error + func HTTPError(w http.ResponseWriter, err error) + func KindIs(kind Kind, err error) bool + func Match(err1, err2 error) bool + func RE(args ...interface{}) error + func StripStack(e error) error + type BazError struct + Inner error + Reason string + func (e BazError) Error() string + func (e BazError) Unwrap() error + type Code string + type ErrResponse struct + Error ServiceError + type Error struct + Code Code + Err error + Kind Kind + Op Op + Param Parameter + Path PathName + User UserName + func (e *Error) Error() string + func (e Error) Unwrap() error + type HTTPErr struct + Code Code + Err error + HTTPStatusCode int + Kind Kind + Param Parameter + func (hse *HTTPErr) SetErr(s string) + func (hse *HTTPErr) StatusOnly() bool + func (hse HTTPErr) ErrCode() string + func (hse HTTPErr) ErrKind() string + func (hse HTTPErr) ErrParam() string + func (hse HTTPErr) Error() string + func (hse HTTPErr) Status() int + type InputUnwanted string + func (e InputUnwanted) Error() string + type Kind uint8 + const BrokenLink + const Database + const Exist + const IO + const Internal + const Invalid + const InvalidRequest + const NotExist + const Other + const Permission + const Private + const Unanticipated + const Validation + func (k Kind) String() string + type MissingField string + func (e MissingField) Error() string + type Op string + type Parameter string + type PathName string + type ServiceError struct + Code string + Kind string + Message string + Param string + type UserName string