errors

package
v0.0.0-...-31fda41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIError

func NewAPIError(msg string) error

func NewRequeueError

func NewRequeueError(msg string, requeueSeconds int) error

Types

type APIError

type APIError struct {
	ErrMsg string `json:"error"`
}

func IsAPIError

func IsAPIError(err error) (*APIError, bool)

func (*APIError) Error

func (e *APIError) Error() string

func (*APIError) ErrorJSON

func (e *APIError) ErrorJSON() []byte

type RequeueError

type RequeueError struct {
	// contains filtered or unexported fields
}

func IsRequeueError

func IsRequeueError(err error) (*RequeueError, bool)

func (*RequeueError) Duration

func (r *RequeueError) Duration() time.Duration

func (*RequeueError) Error

func (r *RequeueError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL