rspec/rules/S2738/description.adoc
2021-01-27 13:42:22 +01:00

2 lines
269 B
Plaintext

A general ``++catch++`` block seems like an efficient way to handle multiple possible exceptions. Unfortunately, it traps all exception types, casting too broad a net, and perhaps mishandling extraordinary cases. Instead, specific exception sub-types should be caught.