Documentation
¶
Index ¶
- type Code
- type Error
- func As(err error) (bool, *Error)
- func New(c Code, err error) *Error
- func NewBadGatewayError(err error) *Error
- func NewBadParamsError(err error) *Error
- func NewContextError(ctx context.Context) *Error
- func NewInternalError(err error) *Error
- func NewInvalidAuth(err error) *Error
- func NewNoMoreRetryError(err error) *Error
- func NewNotFoundError(err error) *Error
- func NewNotImplError(err error) *Error
- func NewStatusConflicted(err error) *Error
- func NewTimeoutError(err error) *Error
- func NewUnknownError(err error) *Error
- func Newf(c Code, format string, args ...interface{}) *Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code int
const ( CodeNotFound Code // CodeNotFound = 1 CodeStatusConflicted // CodeStatusConflicted = 2 CodeInvalidAuth CodeBadParameters CodeTimeout CodeInternal CodeNoMoreRetry CodeBadGateway CodeUnknown CodeNotImpl )
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func NewBadGatewayError ¶
func NewBadParamsError ¶
func NewContextError ¶
func NewInternalError ¶
func NewInvalidAuth ¶
func NewNoMoreRetryError ¶
func NewNotFoundError ¶
func NewNotImplError ¶
func NewStatusConflicted ¶
func NewTimeoutError ¶
func NewUnknownError ¶
Click to show internal directories.
Click to hide internal directories.