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
To some extent, this is a question of style, but there are two primary reasons why this practice should generally be avoided:
You lose important information about the exception.
The codebase gets bloated with conditional statements checking for True/False return values. There's an added burden on the developer to remember to check return values.
The better solution is to just let the exceptions bubble up. This is especially true when the only action taken during a failure is to log the failure. The exception should only be caught if you need to take some special action as a result.
Some examples of methods that could use rewriting:
To some extent, this is a question of style, but there are two primary reasons why this practice should generally be avoided:
To the last point, see issue #102.
The better solution is to just let the exceptions bubble up. This is especially true when the only action taken during a failure is to log the failure. The exception should only be caught if you need to take some special action as a result.
Some examples of methods that could use rewriting:
The text was updated successfully, but these errors were encountered: