Documentation ¶
Index ¶
- func IsBadRequestError(err error) bool
- func IsClientError(err error) bool
- func IsConflictError(err error) bool
- func IsDBError(err error) bool
- func IsForbiddenError(err error) bool
- func IsInvalidRegionError(err error) bool
- func IsNotFoundError(err error) bool
- func IsNotReadyError(err error) bool
- func IsParamError(err error) bool
- func IsServerError(err error) bool
- func IsTaskIsRunningError(err error) bool
- func New(text string) error
- func NewBadRequestError(message string) error
- func NewConflictError(resource string) error
- func NewDBError(message string) error
- func NewForbiddenError(message string) error
- func NewInvalidRegionError(region string) error
- func NewNotFoundError(resource string) error
- func NewNotReadyError(resource string) error
- func NewParamError(message string) error
- func NewTaskIsRunningError(message string) error
- type ClientError
- type Error
- type ServerError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBadRequestError ¶
IsBadRequestError judges error is errBadRequest
func IsClientError ¶
IsClientError judeges error is IsClientError
func IsConflictError ¶
IsConflictError judges error is errConflict
func IsForbiddenError ¶
IsForbiddenError judges error is errForbidden
func IsInvalidRegionError ¶
IsInvalidRegionError judges error is errInvalidRegion
func IsNotFoundError ¶
IsNotFoundError judges error is errNotFound
func IsNotReadyError ¶
IsNotReadyError judges error is errNotReady
func IsParamError ¶
func IsServerError ¶
func IsTaskIsRunningError ¶
IsTaskIsRunningError judges error is errTaskIsRunning
func NewBadRequestError ¶
NewBadRequestError create a new not found error
func NewConflictError ¶
NewConflictError create a new conflict error
func NewDBError ¶
func NewForbiddenError ¶
NewForbiddenError create a new not found error
func NewInvalidRegionError ¶
NewInvalidRegionError create a new not found error
func NewNotFoundError ¶
NewNotFoundError create a new not found error
func NewNotReadyError ¶
NewNotReadyError create a new not ready error
func NewParamError ¶
func NewTaskIsRunningError ¶
NewTaskIsRunningError create a new task is running error
Types ¶
type ClientError ¶
type ClientError struct {
// contains filtered or unexported fields
}
ClientError is an error caused by request client
func NewClientError ¶
func NewClientError(msg string) *ClientError
NewClientError return a ClientError with the msg
func (*ClientError) Error ¶
func (err *ClientError) Error() string
type ServerError ¶
type ServerError struct {
// contains filtered or unexported fields
}
ServerError is an error caused by request client
func NewServerError ¶
func NewServerError(msg string) *ServerError
NewServerError return a ServerError with the msg
func (*ServerError) Error ¶
func (err *ServerError) Error() string