APIError represents a standardized API error
| 41 | |
| 42 | // APIError represents a standardized API error |
| 43 | type APIError struct { |
| 44 | Type ErrorType `json:"type"` |
| 45 | Code string `json:"code"` |
| 46 | Message string `json:"message"` |
| 47 | Details any `json:"details,omitempty"` |
| 48 | ProviderErr *APIError `json:"provider_error,omitempty"` |
| 49 | Err error `json:"-"` |
| 50 | HTTPCode int `json:"-"` |
| 51 | } |
| 52 | |
| 53 | // Error returns the error message |
| 54 | func (e *APIError) Error() string { |
nothing calls this directly
no outgoing calls
no test coverage detected