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: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTooFuture is returned for a write which is too far in the future.
	ErrTooFuture = xerrors.NewInvalidParamsError(errors.New("datapoint is too far in the future"))

	// ErrTooPast is returned for a write which is too far in the past.
	ErrTooPast = xerrors.NewInvalidParamsError(errors.New("datapoint is too far in the past"))

	// ErrColdWritesNotEnabled is returned when cold writes are disabled
	// and a write is too far in the past or future. Note, the error intentionally
	// excludes anything regarding the cold writes feature until its release.
	ErrColdWritesNotEnabled = xerrors.NewInvalidParamsError(errors.New(
		"datapoint is too far in the past or future"))
)

Functions

func IsUnknownNamespaceError added in v0.7.0

func IsUnknownNamespaceError(err error) bool

IsUnknownNamespaceError returns true if this is an unknown namespace.

func NewUnknownNamespaceError added in v0.7.0

func NewUnknownNamespaceError(namespace string) error

NewUnknownNamespaceError returns a new error indicating an unknown namespace parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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