blob: 58a898c47e0058b22948fbdae5a6ac6f4b3d629c [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")