Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrFilterMatch = fmt.Errorf("filter match error") ErrMultipleMatches = multipleMatchesError{} ErrNoMatches = noMatchesError{} )
Functions ¶
func IsConflict ¶
IsConflict returns true if err is an HTTP 409 Conflict response.
func IsInvalidError ¶
IsInvalidError returns true if err is an HTTP 400 Bad Request response.
func IsNotFound ¶
IsNotFound returns true if err indicates the requested OpenStack resource was not found (HTTP 404 or gophercloud's ErrResourceNotFound).
func IsNotImplementedError ¶
IsNotImplementedError returns true if err is an HTTP 501 Not Implemented response.
func IsRetryable ¶
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.
Types ¶
type TerminalError ¶
func (*TerminalError) Error ¶
func (e *TerminalError) Error() string