Why are Python exceptions named "Error"?
Posted
by Elena
on Stack Overflow
See other posts from Stack Overflow
or by Elena
Published on 2010-05-25T10:36:40Z
Indexed on
2010/05/25
10:41 UTC
Read the original article
Hit count: 396
Why are Python exceptions named "Error" (e.g. ZeroDivisionError, NameError, TypeError etc) and not "Exception" (e.g. ZeroDivisionException, NameException, TypeException etc).
I come from a Java background and started to learn Python recently, as such this is confusing because in java there is a distinction between error and exception.
Is there a difference in Python also or not? Can someone explain or point me to some documentation explaining it?
Thank you!
© Stack Overflow or respective owner