apierrors

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedToParseJSONBody     = errors.New("failed to parse json body")
	ErrFailedToReadRequestBody   = errors.New("failed to read message body")
	ErrInvalidJob                = errors.New("the provided Job is not valid")
	ErrInvalidQueryParameter     = errors.New("invalid query parameter")
	ErrInvalidPositiveInteger    = errors.New("value is not a positive integer")
	ErrInternalServer            = errors.New("internal error")
	ErrInvalidState              = errors.New("invalid state")
	ErrInvalidUploadedFileObject = errors.New("invalid json object received, alias_name and url are required")
	ErrInvalidInstanceID         = errors.New("the instance id was not found in the provided job")
	ErrJobNotFound               = errors.New("job not found")
	ErrMissingProperties         = errors.New("missing properties to create import job")
	ErrUnauthorised              = errors.New("unauthenticated request")

	NotFoundMap = map[error]bool{
		ErrJobNotFound: true,
	}

	BadRequestMap = map[error]bool{
		ErrFailedToParseJSONBody:     true,
		ErrFailedToReadRequestBody:   true,
		ErrInvalidJob:                true,
		ErrInvalidQueryParameter:     true,
		ErrInvalidPositiveInteger:    true,
		ErrInvalidState:              true,
		ErrInvalidUploadedFileObject: true,
		ErrInvalidInstanceID:         true,
		ErrMissingProperties:         true,
	}
)

A list of error messages that could be returned by Import API

Functions

func ErrorMaximumLimitReached added in v1.13.0

func ErrorMaximumLimitReached(m int) error

ErrorMaximumLimitReached creates an for the given limit

Types

This section is empty.

Jump to

Keyboard shortcuts

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