apierrors

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDatasetNotFound          = errors.New("dataset not found")
	ErrEditionNotFound          = errors.New("edition not found")
	ErrVersionNotFound          = errors.New("version not found")
	ErrObservationsNotFound     = errors.New("no observations found")
	ErrTooManyWildcards         = errors.New("only one wildcard (*) is allowed as a value in selected query parameters")
	ErrMissingVersionDimensions = errors.New("missing list of dimensions from version doc")
	ErrIndexOutOfRange          = errors.New("index out of range")
	ErrInternalServer           = errors.New("internal error")
	ErrUnauthorised             = errors.New("unauthorised")
	ErrResourceState            = errors.New("incorrect resource state")
	ErrInvalidDocType           = errors.New("incorrect document type")
)

A list of error messages for Observation API

Functions

func ErrorIncorrectQueryParameters

func ErrorIncorrectQueryParameters(params []string) error

ErrorIncorrectQueryParameters returns an error for incorrect selection of query paramters

func ErrorMissingQueryParameters

func ErrorMissingQueryParameters(params []string) error

ErrorMissingQueryParameters returns an error for missing parameters

func ErrorMultivaluedQueryParameters

func ErrorMultivaluedQueryParameters(params []string) error

ErrorMultivaluedQueryParameters returns an error for multi-valued query parameters

Types

type ObservationQueryError

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

ObservationQueryError is an error structure to handle observation query errors

func (ObservationQueryError) Error

func (e ObservationQueryError) Error() string

Error returns the error message

Jump to

Keyboard shortcuts

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