{"modulePath":"github.com/m3db/m3","version":"v1.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Variables\n\n```go\nvar (\n\t// ErrNotFound is returned when something is not found, this might be used for direct comparison\n\tErrNotFound = xhttp.NewError(xerrors.NewInvalidParamsError(errors.New(\"not found\")), http.StatusNotFound)\n\t// ErrHeaderNotFound is returned when a header is not found\n\tErrHeaderNotFound = xerrors.NewInvalidParamsError(errors.New(\"header not found\"))\n\t// ErrBatchQuery is returned when a batch query is found\n\tErrBatchQuery = xerrors.NewInvalidParamsError(errors.New(\"batch queries are currently not supported\"))\n\t// ErrNoQueryFound is returned when a target is not found\n\tErrNoQueryFound = xerrors.NewInvalidParamsError(errors.New(\"no query found\"))\n\t// ErrInvalidResultParamError is returned when result field for complete tag request\n\t// is an unexpected value\n\tErrInvalidResultParamError = xerrors.NewInvalidParamsError(errors.New(\"invalid 'result' type for complete tag request\"))\n\t// ErrNoName is returned when no name param is provided in the resource path\n\tErrNoName = xerrors.NewInvalidParamsError(errors.New(\"invalid path with no name present\"))\n\t// ErrInvalidMatchers is returned when invalid matchers are provided\n\tErrInvalidMatchers = xerrors.NewInvalidParamsError(errors.New(\"invalid matchers\"))\n\t// ErrNamesOnly is returned when label values results are name only\n\tErrNamesOnly = xerrors.NewInvalidParamsError(errors.New(\"can not render label values; result has label names only\"))\n\t// ErrWithNames is returned when label values results are name only\n\tErrWithNames = xerrors.NewInvalidParamsError(errors.New(\"can not render label list; result has label names and values\"))\n\t// ErrMultipleResults is returned when there are multiple label values results\n\tErrMultipleResults = xerrors.NewInvalidParamsError(errors.New(\"can not render label values; multiple results detected\"))\n)\n```\n\n```go\nvar (\n\t// ErrNilWriteQuery is returned when trying to write a nil query.\n\tErrNilWriteQuery = errors.New(\"nil write query\")\n\n\t// ErrRemoteWriteQuery is returned when trying to write to a remote\n\t// endpoint query.\n\tErrRemoteWriteQuery = errors.New(\"cannot write to remote endpoint\")\n\n\t// ErrNotImplemented is returned when the storage endpoint is not implemented.\n\tErrNotImplemented = errors.New(\"not implemented\")\n\n\t// ErrInvalidFetchResponse is returned when fetch fails from storage.\n\tErrInvalidFetchResponse = errors.New(\"invalid response from fetch\")\n\n\t// ErrFetchResponseOrder is returned fetch responses are not in order.\n\tErrFetchResponseOrder = errors.New(\"responses out of order for fetch\")\n\n\t// ErrFetchRequestType is an error returned when response from fetch has\n\t// an invalid type.\n\tErrFetchRequestType = errors.New(\"invalid request type\")\n\n\t// ErrNoValidResults is an error returned when there are no stores\n\t// that succeeded the fanout.\n\tErrNoValidResults = errors.New(\"no valid results in fanout\")\n\n\t// ErrInvalidFetchResult is an error returned when fetch result is invalid.\n\tErrInvalidFetchResult = errors.New(\"invalid fetch result\")\n\n\t// ErrZeroInterval is an error returned when fetch interval is 0.\n\tErrZeroInterval = errors.New(\"interval cannot be 0\")\n\n\t// ErrInvalidOperation is an error returned when fetch raw is called on wrong\n\t// storage type.\n\tErrInvalidOperation = errors.New(\"can only fetch raw iterators on\" +\n\t\t\" local storage\")\n\n\t// ErrBadRequestType is an error returned when a request type is unexpected.\n\tErrBadRequestType = errors.New(\"request is an invalid type\")\n\n\t// ErrCannotDecodeCompressedTags is an error returned when compressed\n\t// tags cannot be decoded.\n\tErrCannotDecodeCompressedTags = errors.New(\"unable to decode compressed tags\")\n\n\t// ErrCannotDecodeDecompressedTags is an error returned when decompressed\n\t// tags cannot be decoded.\n\tErrCannotDecodeDecompressedTags = errors.New(\"unable to decode\" +\n\t\t\" decompressed tags\")\n\n\t// ErrCannotEncodeCompressedTags is an error returned when compressed tags\n\t// cannot be encoded.\n\tErrCannotEncodeCompressedTags = errors.New(\"unable to encode compressed tags\")\n\n\t// ErrOnlyFixedResSupported is an error returned we try to get step size\n\t// for variable resolution.\n\tErrOnlyFixedResSupported = errors.New(\"only fixed resolution supported\")\n\n\t// ErrUnexpectedGRPCResponseType is an error returned when rpc response type\n\t// is unhandled.\n\tErrUnexpectedGRPCResponseType = errors.New(\"unexpected grpc response type\")\n\n\t// ErrInconsistentCompleteTagsType is an error returned when a complete tags\n\t// request returns an inconsistenent type.\n\tErrInconsistentCompleteTagsType = errors.New(\"inconsistent complete tags\" +\n\t\t\" response type\")\n)\n```\n\n```go\nvar (\n\t// ErrNoClientAddresses is an error when there are no addresses passed to the remote client\n\tErrNoClientAddresses = errors.New(\"no client addresses given\")\n)\n```\n\n## Functions\n\n```go\nfunc ErrMaxConcurrentQueriesLimitExceeded(n, limit int) error\n```\nErrMaxConcurrentQueriesLimitExceeded is an error when the query cannot be run because the maximum number of queries has been reached.\n\n```go\nfunc IsTimeout(err error) bool\n```\nIsTimeout returns true if the error was caused by a timeout.\n\n## Types\n\n```go\ntype ErrQueryTimeout struct {\n\t// contains filtered or unexported fields\n}\n```\nErrQueryTimeout is returned when a query times out executing.\n\n```go\nfunc NewErrQueryTimeout(err error) *ErrQueryTimeout\n```\nNewErrQueryTimeout wraps the provided causing error as an ErrQueryTimeout.\n\n```go\nfunc (e *ErrQueryTimeout) Code() int\n```\nCode returns an HTTP 504.\n\n```go\nfunc (e *ErrQueryTimeout) Error() string\n```\nError returns the error string of the causing error.\n\n```go\nfunc (e *ErrQueryTimeout) InnerError() error\n```\nInnerError returns the cause of the query timeout.\n\n","path":"github.com/m3db/m3/src/query/errors","name":"errors","synopsis":"","isRedistributable":true}
