nobl9 / nobl9-go

Nobl9 SDK for Go!
https://www.nobl9.com/
Mozilla Public License 2.0
27 stars 1 forks source link

feat: Add standardized API errors #567

Closed nieomylnieja closed 1 month ago

nieomylnieja commented 1 month ago

Summary

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.