GenericAPIError provides a generic concrete API error type that SDKs can use to deserialize error responses into. Should be used for unmodeled or untyped errors.
| 19 | // to deserialize error responses into. Should be used for unmodeled or untyped |
| 20 | // errors. |
| 21 | type GenericAPIError struct { |
| 22 | Code string |
| 23 | Message string |
| 24 | Fault ErrorFault |
| 25 | } |
| 26 | |
| 27 | // ErrorCode returns the error code for the API exception. |
| 28 | func (e *GenericAPIError) ErrorCode() string { return e.Code } |
nothing calls this directly
no outgoing calls
no test coverage detected