You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.
I'm trying to understand the strategy around error handling. Is there a document I missed?
I see cases where errors are thrown and where errors are logged and passed to next.
is it safe to say that one should throw errors that will be fatal anyway and pass them to next if there's hope that the process can otherwise functionally survive?
The text was updated successfully, but these errors were encountered:
Errors should usually be logged unless they are expected. For example when
the user closes the page mid response there is no reason the put that in
the log.
Errors should not be shown to the user unless they are meaningful.
Especially if they might reveal something.
Errors need to be thrown or passed on if they prevent further work to be
done.
Errors need to be thrown or passed on if they prevent further work to be
done.
I guess that's why I'm asking -- when I've passed err's to next in calipso it doesn't seem to stop a later error from occurring -- as if no error handler snapped up the error. That's why I looked around and ended up finding cases where errors are thrown instead (which I assume are crashing the process).
If the error is should be fatal, is that the way to create a fatal error? And otherwise log as appropriate and pass to next?
I'm trying to understand the strategy around error handling. Is there a document I missed?
I see cases where errors are thrown and where errors are logged and passed to next.
is it safe to say that one should throw errors that will be fatal anyway and pass them to next if there's hope that the process can otherwise functionally survive?
The text was updated successfully, but these errors were encountered: