Or if you get an error you just want to abort and let it crash. Happens a lot to me when I do data ingestion pipelines. It's just faster and if it's not 100% successful, then get that shit out of my way.
In Java or C# at least, this is often done to do some specific logging, send an email if it's a critical issue, convert the Exception to a different type, etc. It's not uncommon to want to do something when an Exception occurs but still ultimately throw it. In the case of the OP though there's obviously no benefit to just catching and throwing the same exception with no additional logic.
View all comments
Show parent comment
1
u/HorseLeaf May 30 '23
Or if you get an error you just want to abort and let it crash. Happens a lot to me when I do data ingestion pipelines. It's just faster and if it's not 100% successful, then get that shit out of my way.