{"modulePath":"github.com/k-orc/openstack-resource-controller/v2","version":"v2.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Variables\n\n```go\nvar (\n\tErrFilterMatch     = fmt.Errorf(\"filter match error\")\n\tErrMultipleMatches = multipleMatchesError{}\n\tErrNoMatches       = noMatchesError{}\n)\n```\n\n## Functions\n\n```go\nfunc IsConflict(err error) bool\n```\nIsConflict returns true if err is an HTTP 409 Conflict response.\n\n```go\nfunc IsInvalidError(err error) bool\n```\nIsInvalidError returns true if err is an HTTP 400 Bad Request response.\n\n```go\nfunc IsNotFound(err error) bool\n```\nIsNotFound returns true if err indicates the requested OpenStack resource was not found (HTTP 404 or gophercloud's ErrResourceNotFound).\n\n```go\nfunc IsNotImplementedError(err error) bool\n```\nIsNotImplementedError returns true if err is an HTTP 501 Not Implemented response.\n\n```go\nfunc IsRetryable(err error) bool\n```\nIsRetryable 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.\n\nNon-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.\n\n```go\nfunc Terminal(reason, message string, errs ...error) error\n```\n\n## Types\n\n```go\ntype TerminalError struct {\n\tReason  string\n\tMessage string\n}\n```\n\n```go\nfunc (e *TerminalError) Error() string\n```\n\n","path":"github.com/k-orc/openstack-resource-controller/v2/internal/util/errors","name":"errors","synopsis":"","isRedistributable":true}
