errors

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTableNotFound returned when the table is not found.
	ErrTableNotFound = errors.New("table not found")
	// ErrEmptyKey returned when the key is not provided.
	ErrEmptyKey = errors.New("key must not be empty")
	// ErrKeyLengthExceeded key length exceeded max allowed value.
	ErrKeyLengthExceeded = errors.New("key length exceeded max allowed value")
	// ErrValueLengthExceeded value length exceeded max allowed value.
	ErrValueLengthExceeded = errors.New("value length exceeded max allowed value")
	// ErrUnknownQueryType unknown type sent to the Lookup method.
	ErrUnknownQueryType = errors.New("unknown query type")
	// ErrInvalidNodeID invalid (negative or 0) node ID.
	ErrInvalidNodeID = errors.New("invalid node ID")
	// ErrInvalidClusterID invalid (negative or 0) cluster ID.
	ErrInvalidClusterID = errors.New("invalid cluster ID")
	// ErrStateMachineClosed state machine is closed.
	ErrStateMachineClosed = errors.New("calling action on closed state machine")
	// ErrNoResultFound FSM should have returned a result, but it didn't.
	ErrNoResultFound = errors.New("FSM returned no results")
	// ErrUnknownResultType FSM returned a result of the wrong type.
	ErrUnknownResultType = errors.New("unknown result type")

	ErrTableExists             = errors.New("table already exists")
	ErrManagerClosed           = errors.New("manager closed")
	ErrLeaseNotAcquired        = errors.New("lease not acquired")
	ErrNodeHostInfoUnavailable = errors.New("nodehost info unavailable")

	// ErrLogBehind the queried log is behind and contains only older indices.
	ErrLogBehind = errors.New("queried log is behind")
	// ErrLogAhead the queried log is ahead and contains only newer indices.
	ErrLogAhead = errors.New("queried log is ahead")
)

Functions

func IsSafeToRetry added in v0.4.1

func IsSafeToRetry(err error) bool

IsSafeToRetry returns true for transient errors for operations that client could attempt to retry using the same arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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