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

Added ArangoDBErrors enum #447

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Added ArangoDBErrors enum #447

merged 1 commit into from
Jan 18, 2023

Conversation

tjoubert
Copy link
Contributor

Solves issue #424
Added an enum of ArangoDB errors.

@tjoubert tjoubert added the enhancement New feature or request label Dec 13, 2022
@tjoubert tjoubert self-assigned this Dec 13, 2022
@tjoubert tjoubert linked an issue Dec 13, 2022 that may be closed by this pull request
@tjoubert tjoubert requested a review from mpoeter January 16, 2023 07:52
Copy link
Collaborator

@DiscoPYF DiscoPYF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

The name of the enums don't really follow the project's convention (PascalCase for enum fields), but at least they match ArangoDB's error codes so can be recognisable. Also probably easier to automate generating these.

Did you use any sort of automated script to add them? I wonder if we should open an issue to create a script that updates this file automatically, so that we can easily update it between ArangoDB releases.

@tjoubert
Copy link
Contributor Author

@DiscoPYF, I did consider the project convention. However, I think it's better to leave the error code names exactly as defined by the server.
I have added a new issue for a script to generate the enum file.

@tjoubert tjoubert merged commit 49a482b into master Jan 18, 2023
@tjoubert tjoubert deleted the enum-error-numbers branch January 18, 2023 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create enum of error numbers
2 participants