no-useless-catch
Configuration
rslint.config.ts
Rule Details
Disallows catch clauses that only rethrow the caught error. A catch clause that only rethrows the original error is redundant, and has no effect on the runtime behavior of the program. These redundant clauses can be a source of confusion and code bloat, so it is better to disallow them.
Examples of incorrect code for this rule:
Examples of correct code for this rule: