errors

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: Apache-2.0 Imports: 2 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidQuery is returned when executing an unknown query type.
	ErrInvalidQuery = errors.New("invalid query")

	// ErrNotExecuted is returned when a statement is not executed in a query.
	// This can occur when a previous statement in the same query has errored.
	ErrNotExecuted = errors.New("not executed")

	// ErrQueryInterrupted is an error returned when the query is interrupted.
	ErrQueryInterrupted = errors.New("query interrupted")

	// ErrQueryAborted is an error returned when the query is aborted.
	ErrQueryAborted = errors.New("query aborted")

	// ErrQueryEngineShutdown is an error sent when the query cannot be
	// created because the query engine was shutdown.
	ErrQueryEngineShutdown = errors.New("query engine shutdown")

	// ErrQueryTimeoutLimitExceeded is an error when the query hits the max time allowed to run.
	ErrQueryTimeoutLimitExceeded = errors.New("query timeout limit exceeded")

	// ErrNoClientAddresses is an error when there are no addresses passed to the remote client
	ErrNoClientAddresses = errors.New("no client addresses given")
)
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")
)
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")
)

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