Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
1.0
-
None
-
None
-
26930
Description
If the exception messages when required fields aren't found were worded a bit
better, it would prevent users of this API from having to regenerate messages
to their users on what went wrong. As it is now, the exception message just
states the names of the options that were not found. If this message contained
some phrase stating something like: "The following required fields were not
found: -r, -g.", then we could just pass the exception message on to the user.
A better way to approach the problem might be some sort of way to customize
common error messages as long as it was done in a way that would reduce the
amount of coding needed by the user of the API.