mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
* xlucas/go-ovh is deprecated, use ovh/go-ovh instead. * vendor github.com/ovh/go-ovh * Fix 022-sshfp.json test
18 lines
323 B
Go
18 lines
323 B
Go
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)
|
|
}
|