Releases: NeutrinoCorp/ddderr
Add dynamic fields
Full Changelog: v3.2.0...v3.3.0
Attribute naming with symbols support for status
Now attributes (properties/resources) may use symbols (e.g. underscores, hyphens) for their naming so ddderr
will generate the status name by default correctly.
This was done in order to simply default error status name generation, so less calls to SetStatus()
method will be required.
Developers may still set a custom status with the SetStatus()
method from ddderr.Error struct.
Example
err := ddderr.NewNotFound("foo_bar_baz")
// this will output -> FooBarBazNotFound
log.Print(err.Status())
Fix generic HTTP error status generation
v3.1.2 Fix generic http error status generation when
Fix HTTP error type generation
v3.1.1 Fix http error type generation
Custom or System-owned errors feature
DDDError now accepts error status from the developer system.
This is a very useful feature so clients or even final users may see an specific error name so they can handle as expected.
In the case of end-users, the developer could show the status name (e.g. FooIsNotOpened, NCORP-45123) so they can report it with the support/help-desk team.
In the other hand, in the case of clients (e.g. web, native mobile app), these status names may define specific behaviours when an error occurs. By using generic protocol-specific error status names (e.g. Internal Server Error, Bad Request), the client may not be able to react properly depending on the actual specific error.
Fluent API integration
- Complete rebuilding of the API, Added Fluent APIs.
- Add HTTP utils.
Release v2.0.4 (2021-02-14)
Execute go mod tidy command
Release v2.0.1 (2021-02-14)
Changelog
- Fix Go Pkg.go.dev fetching
Refactor overall architecture
Changelog
- Remove
errors
package implicit dependency. - Remove reflection-based implementations.
- Add custom
Error
struct which complies witherror
interface. - Improve code testing coverage.
- Increase overall performance.
- Update error factories.
Initial release
Changelog
- Added main exceptions
- Added GitHub Actions (Continuous integration)