apperrors

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidFilter         = errors.New("invalid filter type given")
	ErrFilterNotFound        = errors.New("filter type from client not available in data.go")
	ErrInternalServer        = errors.New("internal server error")
	ErrInvalidPage           = errors.New("invalid page value, exceeding the default maximum search results")
	ErrPageExceedsTotalPages = errors.New("invalid page value, exceeding the total page value")
	ErrInvalidQueryString    = errors.New("the query string did not meet requirements")

	BadRequestMap = map[error]bool{
		ErrInvalidFilter:         true,
		ErrInvalidPage:           true,
		ErrFilterNotFound:        true,
		ErrPageExceedsTotalPages: true,
		ErrInvalidQueryString:    true,
	}
)

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