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

Feature/Use Error Code As Enum #15

Conversation

AlistairB99124
Copy link
Contributor

@AlistairB99124 AlistairB99124 commented Nov 7, 2019

#12

Copy link
Collaborator

@rossmills99 rossmills99 left a comment

Choose a reason for hiding this comment

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

I like, thanks for picking up on the idea that the ArangoDB errorNum field could be captured as enum.

One question I have, is the name ErrorCode right? Since ArangoDB responses call this errorNum, would it make sense to use the same nomenclature and call it ErrorNum or possibly ArangoDBErrorNum? @DiscoPYF any opinion?

@AlistairB99124
Copy link
Contributor Author

Is there a convention for how we differentiate between an int and an enum? Otherwise, yes, agreed, we should keep the property name ErrorNum

@rossmills99 rossmills99 changed the title Feature/Use Error Code As Enum #12 Feature/Use Error Code As Enum Nov 9, 2019
@rossmills99 rossmills99 changed the title #12 Feature/Use Error Code As Enum Feature/Use Error Code As Enum Nov 9, 2019
@rossmills99
Copy link
Collaborator

After some discussion we've decided not to merge this and continue using int to represent error numbers, for better forward compatibility (in case ArangoDB introduces new error numbers).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants