Use enumerations for Error kinds #17898
aesteve
started this conversation in
Feature Requests
Replies: 0 comments 2 replies
-
Looks good. Could we call them "categories" of errors, rather than "kinds"? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For a newcomer implementing Error Messages, choosing the right kind of error is a bit difficult. What is "kind" ? What does it mean ? Is it documented somewhere ? Which one should I pick ?
A very simple first step could be to gather all the existing kinds into an enumeration, this is simple, and allows to gather every kind of error in a single place.
This would allow newcomers to, at least, quickly get a glimpse of the different kind of errors already used (
Syntax
,Reference
, etc.).After that, maybe documenting the enum would be a very good idea.
Beta Was this translation helpful? Give feedback.
All reactions