Exceptions messages are a bit unclear
See original GitHub issueHi,
Take for example this invalid JSLT:
{
"id" : ,
}
This will produce this exception (using the demo playground):
com.schibsted.spt.data.jslt.JsltException: Parse error: Encountered " "," ", "" at line 2, column 10.
How do you read whatever is between Encountered
and at line 2,...
? It’s kind of confusing IMO.
Let me know what do you think, thank you for this great library!
Issue Analytics
- State:
- Created 3 years ago
- Comments:12
Top Results From Across the Web
Error Messages: Examples, Best Practices & Common Mistakes
1. Ambiguity · 2. Condescending language/blaming the user · 3. Poor placement of error messages · 4. Unclear expectations.
Read more >Unclear how to suppress "Possible unhandled error ... - GitHub
When my task fails, I leave the exception to propagate out of the task itself. Then, I catch it when I do ray.get...
Read more >Exception messages are for programmers - ploeh blog
Developers who do care about exception messages often seem to have end users in mind. They may spell exception messages correctly, but shy...
Read more >Your error messages are bad and you should feel bad
The translation from exceptions to error messages is a technical decision and often a bad one. There are legitimate times you should do...
Read more >[SERVER-11188] update $bit error messages are unclear
I think the error message should say something like, "cannot apply $bit to a value that is not NumberInt nor NumberLong". ======= ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You entered the JSON object in the
JSTL
text area in the playground.I, OTOH, entered the same JSON object in the
Input
text area. That explains the different errors experienced.Reopening, because those error messages really could be better than they are.