Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Return an error's code? #14

Open
davideluque opened this issue Oct 2, 2020 · 1 comment
Open

Return an error's code? #14

davideluque opened this issue Oct 2, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@davideluque
Copy link
Owner

Right now we can get danish, english and developer-friendly messages in the error class. Would it be nice to add e.code to get the error's code?

@davideluque davideluque added the enhancement New feature or request label Oct 2, 2020
@davideluque
Copy link
Owner Author

For example:

e.code # "AUTH001"
e.code # "SRV001"
e.code # nil

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant