5 Matching Annotations
- Dec 2019
-
stackoverflow.com stackoverflow.com
-
Arguably, the rails-team's choice of raising ArgumentError instead of validation error is correct in the sense that we have full control over what options a user can select from a radio buttons group, or can select over a select field, so if a programmer happens to add a new radio button that has a typo for its value, then it is good to raise an error as it is an application error, and not a user error. However, for APIs, this will not work because we do not have any control anymore on what values get sent to the server.
-
-
stackoverflow.com stackoverflow.com
-
When the controller creates the user, instead of adding a validation error to the record, it raises an exception. How to avoid this?
-
-
stackoverflow.com stackoverflow.com
-
But now the first line throws an exception ArgumentError: '0' is not a valid audience
-
-
ewontfix.com ewontfix.com
-
Unfortunately, it also gets the other properties, including bringing down the whole system when it crashes. This matters because systemd is complex
Tags
Annotators
URL
-
- Nov 2019
-
www.valentinog.com www.valentinog.com
-
“Code without tests is broken by design”
-