errors

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ReasonUnknown means that the underlying cause for the error is unknown
	ReasonUnknown = "Unknown"

	// ReasonSchemaDisagreement means that there is schema disagreement in the Cassandra
	// cluster so schema changes should not be applied until that disagreement is
	// resolved.
	ReasonSchemaDisagreement = "SchemaDisagreement"
)

Variables

This section is empty.

Functions

func IsSchemaDisagreement

func IsSchemaDisagreement(err error) bool

Types

type K8ssandraError

type K8ssandraError struct {
	Reason  Reason
	Message string
}

func NewSchemaDisagreementError

func NewSchemaDisagreementError(message string) *K8ssandraError

func (*K8ssandraError) Error

func (e *K8ssandraError) Error() string

type Reason

type Reason string

func ReasonForError

func ReasonForError(err error) Reason

Jump to

Keyboard shortcuts

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