package
0.0.0-20180704120643-39cffea1dab6
Repository: https://github.com/gosoon/go-utils.git
Documentation: pkg.go.dev

# Functions

IsBadRequestError judges error is errBadRequest.
IsClientError judeges error is IsClientError.
IsConflictError judges error is errConflict.
IsForbiddenError judges error is errForbidden.
IsInvalidRegionError judges error is errInvalidRegion.
IsNotFoundError judges error is errNotFound.
IsNotReadyError judges error is errNotReady.
IsTaskIsRunningError judges error is errTaskIsRunning.
New returns an error that formats as the given text.
NewBadRequestError create a new not found error.
NewClientError return a ClientError with the msg.
NewConflictError create a new conflict error.
NewForbiddenError create a new not found error.
NewInvalidRegionError create a new not found error.
NewNotFoundError create a new not found error.
NewNotReadyError create a new not ready error.
NewServerError return a ServerError with the msg.
NewTaskIsRunningError create a new task is running error.

# Structs

ClientError is an error caused by request client.
ServerError is an error caused by request client.