DEV Community

Discussion on: Python exceptions considered an anti-pattern

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

"Judging by their name it is an entity representing some exceptional situation that happens inside your program."

This is, and has always been false. Exceptions are a mechanism for propagating errors. There is no reason for them to be exceptional.

Collapse
 
sobolevn profile image
Nikita Sobolev

Consider "exceptional situation that happens inside your program" as errors. Or some unreachable state. It does not make any difference.