auth
auth/errors.go
Handle remaining access errors. Fill out remaining TODOs about returning errors when trying to obtain an access token.
1.1 --- a/errors.go Wed Aug 13 06:07:37 2014 -0400 1.2 +++ b/errors.go Wed Aug 13 06:46:13 2014 -0400 1.3 @@ -14,12 +14,15 @@ 1.4 ) 1.5 1.6 var ( 1.7 - ClientNotFoundError = errors.New("Client not found.") 1.8 - URIMissingError = errors.New("Redirect URI missing.") 1.9 - InvalidMethodError = errors.New("Invalid request method.") 1.10 - InternalServerError = errors.New("Internal server error.") 1.11 - ErrorNotAuthenticated = errors.New("Not authenticated.") 1.12 - InvalidClientError = errors.New("Invalid client.") 1.13 + ClientNotFoundError = errors.New("Client not found.") 1.14 + URIMissingError = errors.New("Redirect URI missing.") 1.15 + InvalidMethodError = errors.New("Invalid request method.") 1.16 + InternalServerError = errors.New("Internal server error.") 1.17 + ErrorNotAuthenticated = errors.New("Not authenticated.") 1.18 + InvalidClientError = errors.New("Invalid client.") 1.19 + AuthorizationNotFoundError = errors.New("Authorization not found.") 1.20 + ProfileNotFoundError = errors.New("Profile not found.") 1.21 + TokenNotFoundError = errors.New("Token not found.") 1.22 ) 1.23 1.24 type URIFormatError string