Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error handling should return error codes #1763

Closed
wtrocki opened this issue Aug 17, 2021 · 1 comment
Closed

Error handling should return error codes #1763

wtrocki opened this issue Aug 17, 2021 · 1 comment
Labels
component/registry DUPLICATE This issue or pull request already exists priority/high type/enhancement New feature or request
Milestone

Comments

@wtrocki
Copy link

wtrocki commented Aug 17, 2021

Errors should return human redable message and error code.
Error codes should be documented.

Example errors that should have proper codes:

- artifact not found "APIREG-01"
- group not found "APIREG-02"
- Cannot recognize artifact type "APIREG-03"
- Provided artifact is not valid
- Provided artifact doesn't meet rules#
- Conflict error when uploading artifact
...

Current API Returns java class name and message that cannot be used to determine type of the error.

@EricWittmann
Copy link
Member

Duplicate of: #1929

@EricWittmann EricWittmann added the DUPLICATE This issue or pull request already exists label Sep 5, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/registry DUPLICATE This issue or pull request already exists priority/high type/enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

4 participants