errors

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFilterMatch     = fmt.Errorf("filter match error")
	ErrMultipleMatches = multipleMatchesError{}
	ErrNoMatches       = noMatchesError{}
)

Functions

func IsConflict

func IsConflict(err error) bool

IsConflict returns true if err is an HTTP 409 Conflict response.

func IsInvalidError

func IsInvalidError(err error) bool

IsInvalidError returns true if err is an HTTP 400 Bad Request response.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if err indicates the requested OpenStack resource was not found (HTTP 404 or gophercloud's ErrResourceNotFound).

func IsNotImplementedError

func IsNotImplementedError(err error) bool

IsNotImplementedError returns true if err is an HTTP 501 Not Implemented response.

func IsRetryable

func IsRetryable(err error) bool

IsRetryable returns true if err may succeed when retried without changes to the spec. This includes HTTP error responses other than 409 Conflict, since some HTTP errors (like 400 Bad Request) can be transient when a dependency is not yet ready in OpenStack, and server errors (5xx) are typically transient.

Non-HTTP errors from gophercloud (e.g. client-side validation such as banned value_spec keys), 409 Conflict, and 501 Not Implemented are not retryable. The exception is Neutron quota-exceeded errors, which are returned as 409 but are retryable because quota can free up without spec changes.

func Terminal

func Terminal(reason, message string, errs ...error) error

Types

type TerminalError

type TerminalError struct {
	Reason  string
	Message string
}

func (*TerminalError) Error

func (e *TerminalError) Error() string

Jump to

Keyboard shortcuts

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