Documentation
¶
Overview ¶
Package erro provides error handling related utilities
Index ¶
- Constants
- func AsPqError(err error) (*pq.Error, bool)
- func Dump(w io.Writer, err error)
- func Errorf(be BaseError, a ...interface{}) error
- func Is(err error, target error, targets ...error) bool
- func S1dump(err error) string
- func Sdump(err error) string
- func Wrap(err error) error
- type BaseError
- type Error
Constants ¶
View Source
const ( // Class 22 - Data Exception PqDataException pq.ErrorClass = "22" PqInvalidTextRepresentation pq.ErrorCode = "22P02" )
Variables ¶
This section is empty.
Functions ¶
func Dump ¶
Dump will dump the formatted error string (with each error in its own line) into w io.Writer
func Is ¶
Is reports whether any error in err's chain matches the target(s). Exactly the same as errors.Is, but variadic
Types ¶
Click to show internal directories.
Click to hide internal directories.