errors

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreStateFromAnotherPluginError

func IgnoreStateFromAnotherPluginError(err error) error

IgnoreStateFromAnotherPluginError returns nil if the given error is a StateFromAnotherPluginError and the error itself otherwise.

func IsStateFromAnotherPluginError

func IsStateFromAnotherPluginError(err error) bool

IsStateFromAnotherPluginError returns true if the given error either is or wraps a StateFromAnotherPluginError.

func NewStateFromAnotherPluginError

func NewStateFromAnotherPluginError(expected string, actual string) error

NewStateFromAnotherPluginError can be use to create an error indicating that the plugin state is from another plugin than expected.

Types

type StateFromAnotherPluginError

type StateFromAnotherPluginError struct {
	Expected string
	Actual   string
}

func ToStateFromAnotherPluginError

func ToStateFromAnotherPluginError(err error) (*StateFromAnotherPluginError, bool)

ToStateFromAnotherPluginError tries to parse the given error or any error wrapped by it as a StateFromAnotherPluginError. Returns the first StateFromAnotherPluginError found and true if such an error is found, nil and false otherwise.

func (*StateFromAnotherPluginError) Error

Jump to

Keyboard shortcuts

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