Error implements the error interface
()
| 15 | |
| 16 | // Error implements the error interface |
| 17 | func (e *Error) Error() string { |
| 18 | if e.StatusCode > 0 { |
| 19 | return fmt.Sprintf("%s error (status %d): %s", e.Provider, e.StatusCode, e.Message) |
| 20 | } |
| 21 | return fmt.Sprintf("%s error: %s", e.Provider, e.Message) |
| 22 | } |
| 23 | |
| 24 | // Unwrap returns the underlying error |
| 25 | func (e *Error) Unwrap() error { |
nothing calls this directly
no outgoing calls
no test coverage detected