Ash Wilson | 31844f2 | 2014-09-08 15:32:58 -0400 | [diff] [blame^] | 1 | package v2 |
Samuel A. Falvo II | 8a549ef | 2014-01-24 15:20:54 -0800 | [diff] [blame] | 2 | |
| 3 | import "fmt" |
| 4 | |
Samuel A. Falvo II | 2b96321 | 2014-02-09 02:12:30 -0800 | [diff] [blame] | 5 | // ErrNotImplemented errors may occur in two contexts: |
| 6 | // (1) development versions of this package may return this error for endpoints which are defined but not yet completed, and, |
| 7 | // (2) production versions of this package may return this error when a provider fails to offer the requested Identity extension. |
| 8 | // |
| 9 | // ErrEndpoint errors occur when the authentication URL provided to Authenticate() either isn't valid |
| 10 | // or the endpoint provided doesn't respond like an Identity V2 API endpoint should. |
| 11 | // |
| 12 | // ErrCredentials errors occur when authentication fails due to the caller possessing insufficient access privileges. |
| 13 | var ( |
| 14 | ErrNotImplemented = fmt.Errorf("Identity feature not yet implemented") |
| 15 | ErrEndpoint = fmt.Errorf("Improper or missing Identity endpoint") |
| 16 | ErrCredentials = fmt.Errorf("Improper or missing Identity credentials") |
| 17 | ) |