Vendor main dependencies.
This commit is contained in:
parent
49a09ab7dd
commit
dd5e3fba01
2738 changed files with 1045689 additions and 0 deletions
17
vendor/github.com/ovh/go-ovh/ovh/error.go
generated
vendored
Normal file
17
vendor/github.com/ovh/go-ovh/ovh/error.go
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
package ovh
|
||||
|
||||
import "fmt"
|
||||
|
||||
// APIError represents an error that can occurred while calling the API.
|
||||
type APIError struct {
|
||||
// Error message.
|
||||
Message string
|
||||
// HTTP code.
|
||||
Code int
|
||||
// ID of the request
|
||||
QueryID string
|
||||
}
|
||||
|
||||
func (err *APIError) Error() string {
|
||||
return fmt.Sprintf("Error %d: %q", err.Code, err.Message)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue