Documentation
¶
Index ¶
- Variables
- func DBError(err error) error
- func Is(err error, code int32) (error, bool)
- func IsDBError(err error) (error, bool)
- func IsNetworkError(err error) (error, bool)
- func IsNotFound(err error) (error, bool)
- func IsTimeout(err error) (error, bool)
- func NetworkError(err error) error
- func New(text string) error
- func NotFound(err error) error
- func Timeout(err error) error
- func Wrap(err error, code int32) error
- type Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorFormat formats e and returns a string in Error(). ErrorFormat = func(e *Error) string { return fmt.Sprintf("%s", e.err.Error()) } // StringFormat formats e and returns a string in String(). StringFormat = func(e *Error) string { return fmt.Sprintf("%d (%s)", e.code, e.err.Error()) } )
Functions ¶
func IsNetworkError ¶
IsNetworkError if err is network error.
Types ¶
Click to show internal directories.
Click to hide internal directories.