Import upstream version 1.1.0+git20211209.1.5bcee91
Debian Janitor
1 year, 11 months ago
3 | 3 | |
4 | 4 | // APIError represents an error that can occurred while calling the API. |
5 | 5 | type APIError struct { |
6 | // Error class | |
7 | Class string `json:"class,omitempty"` | |
6 | 8 | // Error message. |
7 | Message string | |
9 | Message string `json:"message"` | |
10 | // Error details | |
11 | Details map[string]string `json:"details,omitempty"` | |
8 | 12 | // HTTP code. |
9 | 13 | Code int |
10 | 14 | // ID of the request |