Documentation ¶ Index ¶ func New(text string) error func Text(msg string) error func Wrap(err error, text string) error type QueryError func (e *QueryError) Error() string func (e *QueryError) Unwrap() error type TextError func (s *TextError) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(text string) error func Text ¶ func Text(msg string) error Text return TextError type func Wrap ¶ func Wrap(err error, text string) error Types ¶ type QueryError ¶ type QueryError struct { Query string Err error } func (*QueryError) Error ¶ func (e *QueryError) Error() string func (*QueryError) Unwrap ¶ func (e *QueryError) Unwrap() error type TextError ¶ type TextError struct { Msg string } TextError customize cn text error var TextErr *TextError func (*TextError) Error ¶ func (s *TextError) Error() string Source Files ¶ View all Source files errors.go Click to show internal directories. Click to hide internal directories.