Skip to content

Releases: NeutrinoCorp/ddderr

Add dynamic fields

08 Mar 06:12
Compare
Choose a tag to compare

Attribute naming with symbols support for status

25 Oct 04:05
Compare
Choose a tag to compare

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

25 Oct 00:27
Compare
Choose a tag to compare
v3.1.2

Fix generic http error status generation when

Fix HTTP error type generation

24 Oct 23:57
Compare
Choose a tag to compare
v3.1.1

Fix http error type generation

Custom or System-owned errors feature

24 Oct 08:35
Compare
Choose a tag to compare

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

06 Oct 01:07
Compare
Choose a tag to compare
  • Complete rebuilding of the API, Added Fluent APIs.
  • Add HTTP utils.

Release v2.0.4 (2021-02-14)

15 Feb 03:32
Compare
Choose a tag to compare
Execute go mod tidy command

Release v2.0.1 (2021-02-14)

15 Feb 03:19
1dc8a8c
Compare
Choose a tag to compare

Changelog

  • Fix Go Pkg.go.dev fetching

Refactor overall architecture

15 Feb 02:49
699f74f
Compare
Choose a tag to compare

Changelog

  • Remove errors package implicit dependency.
  • Remove reflection-based implementations.
  • Add custom Error struct which complies with error interface.
  • Improve code testing coverage.
  • Increase overall performance.
  • Update error factories.

Initial release

08 Nov 09:49
83f7c19
Compare
Choose a tag to compare

Changelog

  • Added main exceptions
  • Added GitHub Actions (Continuous integration)