Add application level errors to the current APIError. Due to the naming conflict, rename APIError to more general HTTPError and name the application level error APIError.
Release Notes
sdk.APIError is now an application level error. It can be accessed through sdk.HTTPError.Errors field.
Breaking Changes
The former sdk.APIError has been renamed sdk.HTTPError. The sdk.HTTPError.Message field has been removed. Run gofmt -r 'sdk.APIError -> sdk.HTTPError' to apply the change to your codebase.
Summary
Add application level errors to the current
APIError
. Due to the naming conflict, renameAPIError
to more generalHTTPError
and name the application level errorAPIError
.Release Notes
sdk.APIError
is now an application level error. It can be accessed throughsdk.HTTPError.Errors
field.Breaking Changes
The former
sdk.APIError
has been renamedsdk.HTTPError
. Thesdk.HTTPError.Message
field has been removed. Rungofmt -r 'sdk.APIError -> sdk.HTTPError'
to apply the change to your codebase.