apierrors

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 1 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")
	ErrInternalServer            = errors.New("internal error")
	ErrInvalidState              = errors.New("invalid state")
	ErrInvalidUploadedFileObject = errors.New("invalid json object received, alias_name and url are required")
	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,
		ErrInvalidState:              true,
		ErrInvalidUploadedFileObject: true,
		ErrMissingProperties:         true,
	}
)

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

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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