errors

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound is returned when something is not found, this might be used for direct comparison
	ErrNotFound = errors.New("not found")
	// ErrHeaderNotFound is returned when a header is not found
	ErrHeaderNotFound = errors.New("header not found")
	// ErrBatchQuery is returned when a batch query is found
	ErrBatchQuery = errors.New("batch queries are currently not supported")
	// ErrNoQueryFound is returned when a target is not found
	ErrNoQueryFound = errors.New("no query found")
	// ErrInvalidResultParamError is returned when result field for complete tag request
	// is an unexpected value
	ErrInvalidResultParamError = errors.New("invalid 'result' type for complete tag request")
	// ErrNoName is returned when no name param is provided in the resource path
	ErrNoName = errors.New("invalid path with no name present")
	// ErrInvalidMatchers is returned when invalid matchers are provided
	ErrInvalidMatchers = errors.New("invalid matchers")
	// ErrNamesOnly is returned when label values results are name only
	ErrNamesOnly = errors.New("can not render label values; result has label names only")
	// ErrWithNames is returned when label values results are name only
	ErrWithNames = errors.New("can not render label list; result has label names and values")
	// ErrMultipleResults is returned when there are multiple label values results
	ErrMultipleResults = errors.New("can not render label values; multiple results detected")
)
View Source
var (
	// ErrNilWriteQuery is returned when trying to write a nil query
	ErrNilWriteQuery = errors.New("nil write query")

	// ErrRemoteWriteQuery is returned when trying to write to a remote endpoint query
	ErrRemoteWriteQuery = errors.New("cannot write to remote endpoint")

	// ErrNotImplemented is returned when the storage endpoint is not implemented
	ErrNotImplemented = errors.New("not implemented")

	// ErrInvalidFetchResponse is returned when fetch fails from storage.
	ErrInvalidFetchResponse = errors.New("invalid response from fetch")

	// ErrFetchResponseOrder is returned fetch responses are not in order.
	ErrFetchResponseOrder = errors.New("responses out of order for fetch")

	// ErrFetchRequestType is an error returned when response from fetch has invalid type.
	ErrFetchRequestType = errors.New("invalid request type")

	// ErrInvalidFetchResult is an error returned when fetch result is invalid.
	ErrInvalidFetchResult = errors.New("invalid fetch result")

	// ErrZeroInterval is an error returned when fetch interval is 0.
	ErrZeroInterval = errors.New("interval cannot be 0")

	// ErrInvalidOperation is an error returned when fetch raw is called on wrong storage type
	ErrInvalidOperation = errors.New("can only fetch raw iterators on local storage")

	// ErrBadRequestType is an error returned when a request is an unexpected type
	ErrBadRequestType = errors.New("request is an invalid type")

	// ErrCannotDecodeCompressedTags is an error returned when compressed tags cannot be decoded
	ErrCannotDecodeCompressedTags = errors.New("unable to decode compressed tags")

	// ErrCannotDecodeDecompressedTags is an error returned when decompressed tags cannot be decoded
	ErrCannotDecodeDecompressedTags = errors.New("unable to decode decompressed tags")

	// ErrCannotEncodeCompressedTags is an error returned when compressed tags cannot be encoded
	ErrCannotEncodeCompressedTags = errors.New("unable to encode compressed tags")

	// ErrOnlyFixedResSupported is an error returned we try to get step size for variable resolution
	ErrOnlyFixedResSupported = errors.New("only fixed resolution supported")

	// ErrUnexpectedGRPCResponseType is an error returned when rpc response type is unhandled
	ErrUnexpectedGRPCResponseType = errors.New("unexpected grpc response type")
)
View Source
var (
	// ErrNoClientAddresses is an error when there are no addresses passed to the remote client
	ErrNoClientAddresses = errors.New("no client addresses given")
)

Functions

func ErrMaxConcurrentQueriesLimitExceeded

func ErrMaxConcurrentQueriesLimitExceeded(n, limit int) error

ErrMaxConcurrentQueriesLimitExceeded is an error when the query cannot be run because the maximum number of queries has been reached.

Types

This section is empty.

Jump to

Keyboard shortcuts

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