blob: 5ea39913564d244d328a4db4243012eff5c3dbb5 [file] [log] [blame]
Samuel A. Falvo IIfd78c302013-06-25 16:35:32 -07001package gophercloud
2
3import (
4 "fmt"
5)
6
Samuel A. Falvo II4e895182013-06-26 15:44:18 -07007// ErrNotImplemented should be used only while developing new SDK features.
8// No established function or method will ever produce this error.
Samuel A. Falvo IIfd78c302013-06-25 16:35:32 -07009var ErrNotImplemented = fmt.Errorf("Not implemented")
Samuel A. Falvo II4e895182013-06-26 15:44:18 -070010
11// ErrProvider errors occur when attempting to reference an unsupported
12// provider. More often than not, this error happens due to a typo in
13// the name.
Samuel A. Falvo IIfd78c302013-06-25 16:35:32 -070014var ErrProvider = fmt.Errorf("Missing or incorrect provider")
Samuel A. Falvo II4e895182013-06-26 15:44:18 -070015
16// ErrCredentials errors happen when attempting to authenticate using a
17// set of credentials not recognized by the Authenticate() method.
18// For example, not providing a username or password when attempting to
19// authenticate against an Identity V2 API.
Samuel A. Falvo IIfd78c302013-06-25 16:35:32 -070020var ErrCredentials = fmt.Errorf("Missing or incomplete credentials")
Samuel A. Falvo II4e895182013-06-26 15:44:18 -070021
22// ErrConfiguration errors happen when attempting to add a new provider, and
23// the provider added lacks a correct or consistent configuration.
24// For example, all providers must expose at least an Identity V2 API
25// for authentication; if this endpoint isn't specified, you may receive
26// this error when attempting to register it against a context.
Samuel A. Falvo II5d0d74c2013-06-25 17:23:18 -070027var ErrConfiguration = fmt.Errorf("Missing or incomplete configuration")
Samuel A. Falvo IIfca35b72013-07-02 18:30:28 -070028
29// ErrEndpoint errors happen when no endpoint with the desired characteristics
30// exists in the service catalog. This can also happen if your tenant lacks
31// adequate permissions to access a given endpoint.
32var ErrEndpoint = fmt.Errorf("Missing endpoint, or insufficient privileges to access endpoint")
Samuel A. Falvo II2d0f6da2013-07-15 16:41:52 -070033
34// ErrError errors happen when you attempt to discover the response code
35// responsible for a previous request bombing with an error, but pass in an
36// error interface which doesn't belong to the web client.
37var ErrError = fmt.Errorf("Attempt to solicit actual HTTP response code from error entity which doesn't know")