errors

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 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