This repository was archived by the owner on Sep 26, 2024. It is now read-only.
Consistent Error Naming & Semantics #8
robin (zphia)
started this conversation in
Ideas
Replies: 1 comment
-
|
To swing waaay to the other end, is there merit in following this thread? Or should we mix the two?
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
How should we name errors? A library from Upspin keeps it very brief. Their list is:
Which has a few rules I've observed.
It's
ExistsnotAlreadyExists.It's
PermissionsnotNoPermissions.It would be
ArgumentnotInvalidArgument.No parameter specific errors.
The errors are in the context of what failed.
It's
NotEmptynotIsFull.It's
InvalidnotInvalidArgumentorInvalidTypeand so on.Though I think the Upspin ones lack the granularity that we want, I find these ideas useful. Building off of #7, I think the following renames would make sense:
One potential problem with this is that we would have overlap in definitions of
MissingandNotFound.Beta Was this translation helpful? Give feedback.
All reactions