forked from remote/oauth2
Changed directory structure.
This commit is contained in:
14
google/internal/externalaccount/err.go
Normal file
14
google/internal/externalaccount/err.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package externalaccount
|
||||
|
||||
import "fmt"
|
||||
|
||||
//Error for handling OAuth related error responses as stated in rfc6749#5.2.
|
||||
type Error struct {
|
||||
Code string
|
||||
URI string
|
||||
Description string
|
||||
}
|
||||
|
||||
func (err *Error) Error() string {
|
||||
return fmt.Sprintf("got error code %s from %s: %s", err.Code, err.URI, err.Description)
|
||||
}
|
||||
Reference in New Issue
Block a user