errors

package
v0.0.0-...-c5633df Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errors defines a set of common error types for use within Juju. If you are reaching for these errors to use please consider defining more specific package based errors for your needs. Generic error types don't always relay context.

The error types defined here are equivalent and comparable to the error types found in juju/errors and can safely be used as replacements.

Index

Constants

View Source
const (

	// Timeout represents an error on timeout.
	Timeout = jujuerrors.Timeout

	// NotFound represents an error when something has not been found.
	NotFound = jujuerrors.NotFound

	// UserNotFound represents an error when a non-existent user is looked up.
	UserNotFound = jujuerrors.UserNotFound

	// Unauthorized represents an error when an operation is unauthorized.
	Unathorized = jujuerrors.Unauthorized

	// NotImplemented represents an error when something is not implemented.
	NotImplemented = jujuerrors.NotImplemented

	// AlreadyExists represents and error when something already exists.
	AlreadyExists = jujuerrors.AlreadyExists

	// NotSupported represents an error when something is not supported.
	NotSupported = jujuerrors.NotSupported

	// NotValid represents an error when something is not valid.
	NotValid = jujuerrors.NotValid

	// NotProvisioned represents an error when something is not yet provisioned.
	NotProvisioned = jujuerrors.NotProvisioned

	// NotAssigned represents an error when something is not yet assigned to
	// something else.
	NotAssigned = jujuerrors.NotAssigned

	// BadRequest represents an error when a request has bad parameters.
	BadRequest = jujuerrors.BadRequest

	// MethodNotAllowed represents an error when an HTTP request
	// is made with an inappropriate method.
	MethodNotAllowed = jujuerrors.MethodNotAllowed

	// Forbidden represents an error when a request cannot be completed because of
	// missing privileges.
	Forbidden = jujuerrors.Forbidden

	// QuotaLimitExceeded is emitted when an action failed due to a quota limit check.
	QuotaLimitExceeded = jujuerrors.QuotaLimitExceeded

	// NotYetAvailable is the error returned when a resource is not yet available
	// but it might be in the future.
	NotYetAvailable = jujuerrors.NotYetAvailable
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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